mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
New resources directory layout
Now contains directories configs, patches, and packaging for increased sharing flexibility
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
[config]
|
||||
name = Arch Linux
|
||||
inherit = linux_dynamic
|
||||
visible = true
|
||||
@@ -0,0 +1,2 @@
|
||||
[config]
|
||||
name = Common
|
||||
@@ -0,0 +1,3 @@
|
||||
[config]
|
||||
name = Common Debian
|
||||
inherit = linux_dynamic
|
||||
@@ -0,0 +1,4 @@
|
||||
[config]
|
||||
name = Debian 9.0 (stretch)
|
||||
inherit = common_debian
|
||||
visible = true
|
||||
@@ -0,0 +1,4 @@
|
||||
[config]
|
||||
name = Linux Dynamic
|
||||
inherit = common
|
||||
visible = true
|
||||
@@ -0,0 +1,4 @@
|
||||
[config]
|
||||
name = Linux Static
|
||||
inherit = common
|
||||
visible = true
|
||||
@@ -0,0 +1,4 @@
|
||||
[config]
|
||||
name = macOS
|
||||
inherit = common
|
||||
visible = true
|
||||
@@ -0,0 +1,4 @@
|
||||
[config]
|
||||
name = Windows
|
||||
inherit = common
|
||||
visible = true
|
||||
@@ -1,47 +0,0 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
|
||||
sys.path.append("build/linux/unbundle")
|
||||
|
||||
import replace_gn_files
|
||||
|
||||
def strip(path):
|
||||
if os.path.exists(path):
|
||||
for filename in os.listdir(path):
|
||||
remove=True
|
||||
for extension in ('.py','.gn','.gni','google','chromium'):
|
||||
if filename.endswith(extension):
|
||||
remove=False
|
||||
if remove:
|
||||
removal=os.path.join(path,filename)
|
||||
print('removing: %s'%removal)
|
||||
if os.path.isdir(removal):
|
||||
shutil.rmtree(removal)
|
||||
else:
|
||||
os.remove(removal)
|
||||
|
||||
keepers = ()
|
||||
|
||||
for lib,rule in replace_gn_files.REPLACEMENTS.items():
|
||||
if lib not in keepers:
|
||||
# remove conflicting embedded third party source files
|
||||
strip(os.path.dirname(rule))
|
||||
strip(os.path.join('third_party',lib))
|
||||
# remove the gn file that builds the embedded library
|
||||
if os.path.lexists(rule):
|
||||
os.remove(rule)
|
||||
# create a symlink to the unbundle gn file
|
||||
symlink = "ln -s "
|
||||
path = os.path.split(rule)
|
||||
while path[0] != '':
|
||||
path = os.path.split(path[0])
|
||||
symlink += '../'
|
||||
symlink += "build/linux/unbundle/%s.gn %s"%(lib,rule)
|
||||
if os.system(symlink):
|
||||
raise RuntimeError("error creating symlink",symlink)
|
||||
|
||||
# libjpeg_turbo is unlike all the others, so clean it manually here
|
||||
strip('third_party/libjpeg_turbo')
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user