Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
fd58b31c26 | |||
fa1b618896 | |||
2dcbbe9639 | |||
242a086ba1 |
100
lutin/license.py
Normal file
100
lutin/license.py
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
##
|
||||||
|
## @author Edouard DUPIN
|
||||||
|
##
|
||||||
|
## @copyright 2012, Edouard DUPIN, all right reserved
|
||||||
|
##
|
||||||
|
## @license APACHE v2.0 (see license file)
|
||||||
|
##
|
||||||
|
|
||||||
|
license_base = {
|
||||||
|
"APACHE-2": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":False,
|
||||||
|
"title":"APACHE v2.0 license",
|
||||||
|
"licence-file":"licence/apache-2.txt"
|
||||||
|
},
|
||||||
|
"GPL-2": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":True,
|
||||||
|
"contaminate-dynamic":True,
|
||||||
|
"redistribute-source":True,
|
||||||
|
"title":"GPL: Gnu Public Licence v2.0",
|
||||||
|
"licence-file":"licence/GPL-2.txt"
|
||||||
|
},
|
||||||
|
"GPL-3": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":True,
|
||||||
|
"contaminate-dynamic":True,
|
||||||
|
"redistribute-source":True,
|
||||||
|
"title":"GPL: GNU General Public License v3.0",
|
||||||
|
"licence-file":"licence/GPL-3.txt"
|
||||||
|
},
|
||||||
|
"LGPL-2": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":True,
|
||||||
|
"title":"LGPL: GNU Lesser General Public License v2.0",
|
||||||
|
"licence-file":"licence/LGPL-2.txt"
|
||||||
|
},
|
||||||
|
"LGPL-3": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":True,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":True,
|
||||||
|
"title":"LGPL: GNU Lesser General Public License v3.0",
|
||||||
|
"licence-file":"licence/LGPL-3.txt"
|
||||||
|
},
|
||||||
|
"MIT": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":False,
|
||||||
|
"title":"MIT: Massachusetts Institute of Technology License",
|
||||||
|
"licence-file":"licence/MIT.txt"
|
||||||
|
},
|
||||||
|
"BSD-2": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":False,
|
||||||
|
"title":"BSD 2-clauses: Berkeley Software Distribution License",
|
||||||
|
"licence-file":"licence/BSD-2.txt"
|
||||||
|
},
|
||||||
|
"BSD-3": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":False,
|
||||||
|
"title":"BSD 3-clauses: Berkeley Software Distribution License",
|
||||||
|
"licence-file":"licence/BSD-3.txt"
|
||||||
|
},
|
||||||
|
"BSD-4": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":False,
|
||||||
|
"title":"BSD 4-clauses: Berkeley Software Distribution License",
|
||||||
|
"licence-file":"licence/BSD-4.txt"
|
||||||
|
},
|
||||||
|
"PNG": {
|
||||||
|
"generic":True,
|
||||||
|
"contaminate-static":False,
|
||||||
|
"contaminate-dynamic":False,
|
||||||
|
"redistribute-source":False,
|
||||||
|
"title":"PNG License",
|
||||||
|
"licence-file":"licence/png.txt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def get_basic_list():
|
||||||
|
global license_base
|
||||||
|
out = []
|
||||||
|
for name in license_base:
|
||||||
|
out.append(name)
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
@@ -142,6 +142,9 @@ class Target:
|
|||||||
self.path_build = os.path.join("build", self.config["compilator"])
|
self.path_build = os.path.join("build", self.config["compilator"])
|
||||||
|
|
||||||
def create_number_from_version_string(self, data):
|
def create_number_from_version_string(self, data):
|
||||||
|
tmp_data = data.split("-")
|
||||||
|
if len(tmp_data) > 1:
|
||||||
|
data = tmp_data[0]
|
||||||
list = data.split(".")
|
list = data.split(".")
|
||||||
if len(list) == 1:
|
if len(list) == 1:
|
||||||
list.append("0")
|
list.append("0")
|
||||||
|
@@ -99,9 +99,10 @@ def link(file, binary, target, depancy, name, basic_path, static = False):
|
|||||||
lib_name = elem[len(lib_path)+len(target.prefix_lib)+1:-len(target.suffix_lib_dynamic)]
|
lib_name = elem[len(lib_path)+len(target.prefix_lib)+1:-len(target.suffix_lib_dynamic)]
|
||||||
cmd.append("-L" + lib_path)
|
cmd.append("-L" + lib_path)
|
||||||
cmd.append("-l" + lib_name)
|
cmd.append("-l" + lib_name)
|
||||||
|
if target.name != "MacOs" \
|
||||||
|
and target.name != "Android":
|
||||||
if len(list_dynamic) > 0:
|
if len(list_dynamic) > 0:
|
||||||
cmd.append("-Wl,-R$ORIGIN/../lib/")
|
cmd.append("-Wl,-R$ORIGIN/../lib/")
|
||||||
pass
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
@@ -91,7 +91,7 @@ def link(file, binary, target, depancy, name, basic_path, static=False):
|
|||||||
lib_name = elem[len(lib_path)+len(target.prefix_lib)+1:-len(target.suffix_lib_dynamic)]
|
lib_name = elem[len(lib_path)+len(target.prefix_lib)+1:-len(target.suffix_lib_dynamic)]
|
||||||
cmd.append("-L" + lib_path)
|
cmd.append("-L" + lib_path)
|
||||||
cmd.append("-l" + lib_name)
|
cmd.append("-l" + lib_name)
|
||||||
if target != "MacOs" \
|
if target.name != "MacOs" \
|
||||||
and target.name != "Android":
|
and target.name != "Android":
|
||||||
if len(list_dynamic) > 0:
|
if len(list_dynamic) > 0:
|
||||||
cmd.append("-Wl,-R$ORIGIN/../lib/")
|
cmd.append("-Wl,-R$ORIGIN/../lib/")
|
||||||
|
9
setup.py
9
setup.py
@@ -7,7 +7,7 @@ def readme():
|
|||||||
|
|
||||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
setup(name='lutin',
|
setup(name='lutin',
|
||||||
version='0.7.0',
|
version='0.7.3',
|
||||||
description='Lutin generic builder',
|
description='Lutin generic builder',
|
||||||
long_description=readme(),
|
long_description=readme(),
|
||||||
url='http://github.com/HeeroYui/lutin',
|
url='http://github.com/HeeroYui/lutin',
|
||||||
@@ -26,9 +26,10 @@ setup(name='lutin',
|
|||||||
],
|
],
|
||||||
keywords='builder c++ c android ios macos makefile cmake',
|
keywords='builder c++ c android ios macos makefile cmake',
|
||||||
scripts=['bin/lutin'],
|
scripts=['bin/lutin'],
|
||||||
data_file=[
|
# Does not work on MacOs
|
||||||
('/etc/bash_completion.d', ['bash-autocompletion/lutin']),
|
#data_file=[
|
||||||
],
|
# ('/etc/bash_completion.d', ['bash-autocompletion/lutin']),
|
||||||
|
#],
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
zip_safe=False)
|
zip_safe=False)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user