Compare commits

...

5 Commits

Author SHA1 Message Date
5065c7b6ee [CI] version 0.7.10 2015-11-02 22:11:42 +01:00
b497e09dd0 [CI] set minGW builder better 2015-11-02 21:55:32 +01:00
75d1490a59 [DEV] correct the android application naming 2015-11-02 21:35:08 +01:00
ddff6f82b9 [RELEASE] new version 0.7.9 2015-10-30 21:12:01 +01:00
4067d6266e [DEBUG] update android build 2015-10-30 21:05:49 +01:00
4 changed files with 63 additions and 54 deletions

View File

@@ -14,24 +14,33 @@ addons:
packages: packages:
- g++-4.9 - g++-4.9
- expect - expect
- binutils-mingw-w64-i686 - binutils-mingw-w64-i686 # 32bit MinGW
- gcc-mingw-w64-i686 - gcc-mingw-w64-i686
- g++-mingw-w64-i686 - g++-mingw-w64-i686
- binutils-mingw-w64-x86-64 # 64bit MinGW
- gcc-mingw-w64-x86-64
- g++-mingw-w64-x86-64
matrix: matrix:
include: include:
- os: linux - os: linux
env: CONF=release BUILDER=gcc TARGET=Linux TAG=Linux env: CONF=release BUILDER=gcc TARGET=Linux TAG=Linux
compiler: gcc
- os: linux - os: linux
env: CONF=debug BUILDER=clang TARGET=Linux env: CONF=debug BUILDER=clang TARGET=Linux
compiler: clang
- os: linux - os: linux
env: CONF=release BUILDER=gcc TARGET=Windows TAG=Mingw env: CONF=release BUILDER=gcc TARGET=Windows TAG=Mingw
compiler: gcc
- os: linux - os: linux
env: CONF=release BUILDER=gcc TARGET=Android TAG=Android DISABLE_PACKAGE=-p env: CONF=release BUILDER=gcc TARGET=Android TAG=Android DISABLE_PACKAGE=-p
compiler: gcc
- os: osx - os: osx
env: CONF=release BUILDER=clang TARGET=MacOs TAG=MacOs env: CONF=release BUILDER=clang TARGET=MacOs TAG=MacOs
compiler: clang
- os: osx - os: osx
env: CONF=release BUILDER=clang TARGET=IOs TAG=IOs env: CONF=release BUILDER=clang TARGET=IOs TAG=IOs
compiler: clang
install: install:
- cd .. - cd ..

View File

@@ -91,14 +91,14 @@ class Target(target.Target):
self.board_id = int(os.getenv('PROJECT_NDK_BOARD_ID', "0")) self.board_id = int(os.getenv('PROJECT_NDK_BOARD_ID', "0"))
if self.board_id != 0: if self.board_id != 0:
# check if element existed : # check if element existed :
if not os.path.isdir(self.path_ndk +"/platforms/android-" + str(self.board_id)): if not os.path.isdir(self.path_sdk +"/platforms/android-" + str(self.board_id)):
debug.error("Specify PROJECT_NDK_BOARD_ID env variable and the BOARD_ID does not exit ... : " + str(self.board_id) + "==> auto-search") debug.error("Specify PROJECT_NDK_BOARD_ID env variable and the BOARD_ID does not exit ... : " + str(self.board_id) + "==> auto-search")
self.board_id = 0 self.board_id = 0
if self.board_id == 0: if self.board_id == 0:
debug.debug("Auto-search BOARD-ID") debug.debug("Auto-search BOARD-ID")
for iii in reversed(range(0, 50)): for iii in reversed(range(0, 50)):
debug.debug("try: " + os.path.join(self.path_ndk, "platforms", "android-" + str(iii))) debug.debug("try: " + os.path.join(self.path_sdk, "platforms", "android-" + str(iii)))
if os.path.isdir(os.path.join(self.path_ndk, "platforms", "android-" + str(iii))): if os.path.isdir(os.path.join(self.path_sdk, "platforms", "android-" + str(iii))):
debug.debug("Find BOARD-ID : " + str(iii)) debug.debug("Find BOARD-ID : " + str(iii))
self.board_id = iii self.board_id = iii
break; break;
@@ -119,64 +119,64 @@ class Target(target.Target):
debug.error("Clang work only with the board wersion >= 21 : android 5.x.x") debug.error("Clang work only with the board wersion >= 21 : android 5.x.x")
self.global_flags_cc.append("-D__STDCPP_LLVM__") self.global_flags_cc.append("-D__STDCPP_LLVM__")
# llvm-libc++ : BSD | MIT # llvm-libc++ : BSD | MIT
self.global_include_cc.append("-gcc-toolchain " + self.path_ndk +"/sources/android/support/include") self.global_include_cc.append("-gcc-toolchain " + os.path.join(self.path_ndk, "sources", "android", "support", "include"))
self.global_include_cc.append("-I" + self.path_ndk +"/sources/android/support/include") self.global_include_cc.append("-I" + os.path.join(self.path_ndk, "sources", "android", "support", "include"))
self.global_include_cc.append("-I" + self.path_ndk +"/sources/cxx-stl/llvm-libc++/libcxx/include/") self.global_include_cc.append("-I" + os.path.join(self.path_ndk, "sources", "cxx-stl", "llvm-libc++", "libcxx", "include"))
if arch == "armv5": if arch == "armv5":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/llvm-libc++/libcxx/libs/armeabi/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "llvm-libc++", "libcxx", "libs", "armeabi")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath, "include"))
self.global_flags_ld.append( stdCppBasePath + "libc++_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "libc++_static.a"))
elif arch == "armv7": elif arch == "armv7":
# The only one tested ... ==> but we have link error ... # The only one tested ... ==> but we have link error ...
self.global_flags_cc.append("-target armv7-none-linux-androideabi") self.global_flags_cc.append("-target armv7-none-linux-androideabi")
self.global_flags_cc.append("-march=armv7-a") self.global_flags_cc.append("-march=armv7-a")
self.global_flags_cc.append("-mfpu=vfpv3-d16") self.global_flags_cc.append("-mfpu=vfpv3-d16")
self.global_flags_cc.append("-mhard-float") self.global_flags_cc.append("-mhard-float")
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "llvm-libc++", "libs", "armeabi-v7a")
self.global_flags_ld.append( stdCppBasePath + "thumb/libc++_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "thumb", "libc++_static.a"))
self.global_flags_ld.append("-target armv7-none-linux-androideabi") self.global_flags_ld.append("-target armv7-none-linux-androideabi")
self.global_flags_ld.append("-Wl,--fix-cortex-a8") self.global_flags_ld.append("-Wl,--fix-cortex-a8")
self.global_flags_ld.append("-Wl,--no-warn-mismatch") self.global_flags_ld.append("-Wl,--no-warn-mismatch")
self.global_flags_ld.append("-lm_hard") self.global_flags_ld.append("-lm_hard")
elif arch == "mips": elif arch == "mips":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/llvm-libc++/libcxx/libs/mips/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "llvm-libc++", "libcxx", "libs", "mips")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath + "include"))
self.global_flags_ld.append( stdCppBasePath + "libc++_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath + "libc++_static.a"))
elif arch == "x86": elif arch == "x86":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/llvm-libc++/libcxx/libs/x86/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "llvm-libc++", "libcxx", "libs", "x86")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath, "include"))
self.global_flags_ld.append( stdCppBasePath + "libc++_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "libc++_static.a"))
else: else:
self.global_flags_cc.append("-D__STDCPP_GNU__") self.global_flags_cc.append("-D__STDCPP_GNU__")
# GPL v3 (+ exception link for gcc compilator) # GPL v3 (+ exception link for gcc compilator)
self.global_include_cc.append("-I" + self.path_ndk +"/sources/cxx-stl/gnu-libstdc++/" + gccVersion + "/include/") self.global_include_cc.append("-I" + os.path.join(self.path_ndk, "sources", "cxx-stl", "gnu-libstdc++", gccVersion, "include"))
self.global_include_cc.append("-I" + self.path_ndk +"/sources/android/support/include/") self.global_include_cc.append("-I" + os.path.join(self.path_ndk, "sources", "android", "support", "include"))
if arch == "armv5": if arch == "armv5":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/gnu-libstdc++/" + gccVersion + "/libs/armeabi/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "gnu-libstdc++", gccVersion, "libs", "armeabi")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath, "include"))
self.global_flags_ld.append( stdCppBasePath + "thumb/libgnustl_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "thumb", "libgnustl_static.a"))
self.global_flags_ld.append( stdCppBasePath + "thumb/libsupc++.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "thumb", "libsupc++.a"))
elif arch == "armv7": elif arch == "armv7":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/gnu-libstdc++/" + gccVersion + "/libs/armeabi-v7a/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "gnu-libstdc++", gccVersion, "libs", "armeabi-v7a")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath, "include"))
self.global_flags_ld.append( stdCppBasePath + "thumb/libgnustl_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "thumb", "libgnustl_static.a"))
self.global_flags_ld.append( stdCppBasePath + "thumb/libsupc++.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "thumb", "libsupc++.a"))
elif arch == "mips": elif arch == "mips":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/gnu-libstdc++/" + gccVersion + "/libs/mips/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "gnu-libstdc++", gccVersion, "libs", "mips")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath, "include/"))
self.global_flags_ld.append( stdCppBasePath + "libgnustl_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "libgnustl_static.a"))
self.global_flags_ld.append( stdCppBasePath + "libsupc++.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "libsupc++.a"))
elif arch == "x86": elif arch == "x86":
stdCppBasePath = self.path_ndk +"/sources/cxx-stl/gnu-libstdc++/" + gccVersion + "/libs/x86/" stdCppBasePath = os.path.join(self.path_ndk, "sources", "cxx-stl", "gnu-libstdc++", gccVersion, "libs", "x86")
self.global_include_cc.append("-I" + stdCppBasePath + "include/") self.global_include_cc.append("-I" + os.path.join(stdCppBasePath, "include"))
self.global_flags_ld.append( stdCppBasePath + "libgnustl_static.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "libgnustl_static.a"))
self.global_flags_ld.append( stdCppBasePath + "libsupc++.a") self.global_flags_ld.append( os.path.join(stdCppBasePath, "libsupc++.a"))
else : else :
self.global_include_cc.append("-I" + self.path_ndk +"/sources/cxx-stl/system/include/") self.global_include_cc.append("-I" + os.path.join(self.path_ndk, "sources", "cxx-stl", "system", "include"))
self.global_include_cc.append("-I" + self.path_ndk +"/sources/cxx-stl/stlport/stlport/") self.global_include_cc.append("-I" + os.path.join(self.path_ndk, "sources", "cxx-stl", "stlport", "stlport"))
self.global_flags_ld.append(self.path_ndk +"/platforms/android-" + str(self.board_id) + "/arch-arm/usr/lib/libstdc++.a") self.global_flags_ld.append(os.path.join(self.path_ndk, "platforms", "android-" + str(self.board_id), "arch-arm", "usr", "lib", "libstdc++.a"))
self.global_sysroot = "--sysroot=" + self.path_ndk +"/platforms/android-" + str(self.board_id) + "/arch-arm" self.global_sysroot = "--sysroot=" + os.path.join(self.path_ndk, "platforms", "android-" + str(self.board_id), "arch-arm")
self.global_flags_cc.append("-D__ARM_ARCH_5__") self.global_flags_cc.append("-D__ARM_ARCH_5__")
self.global_flags_cc.append("-D__ARM_ARCH_5T__") self.global_flags_cc.append("-D__ARM_ARCH_5T__")
@@ -224,6 +224,13 @@ class Target(target.Target):
return True return True
return False return False
def convert_name_application(self, pkg_name):
value = pkg_name.lower()
value = value.replace(' ', '')
value = value.replace('-', '')
value = value.replace('_', '')
return value
""" """
def get_staging_path_data(self, binary_name): def get_staging_path_data(self, binary_name):
return self.get_staging_path(binary_name) + self.path_data return self.get_staging_path(binary_name) + self.path_data

View File

@@ -39,24 +39,17 @@ class Target(target.Target):
sys.path.append("c:\\MinGW\\bin" ) sys.path.append("c:\\MinGW\\bin" )
os.environ['PATH'] += ";c:\\MinGW\\bin\\" os.environ['PATH'] += ";c:\\MinGW\\bin\\"
else: else:
#if self.config["bus-size"] == "64": if self.config["bus-size"] == "64":
# # 64 bits # 64 bits
# self.set_cross_base("x86_64-w64-mingw32-") self.set_cross_base("x86_64-w64-mingw32-")
#else: else:
# # 32 bits # 32 bits
# self.set_cross_base("i686-w64-mingw32-") self.set_cross_base("i686-w64-mingw32-")
# Only one ... need understand why
self.set_cross_base("i686-w64-mingw32-")
# force static link to prenvent many errors ... # force static link to prenvent many errors ...
self.global_flags_ld.append(["-static-libgcc", self.global_flags_ld.append(["-static-libgcc",
"-static-libstdc++", "-static-libstdc++",
"-static"]) "-static"])
#self.path_bin=""
#self.path_lib="lib"
#self.path_data="data"
#self.path_doc="doc"
self.pkg_path_data = "data" self.pkg_path_data = "data"
self.pkg_path_bin = "" self.pkg_path_bin = ""
self.pkg_path_lib = "lib" self.pkg_path_lib = "lib"

View File

@@ -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.8', version='0.7.10',
description='Lutin generic builder (might replace makefile, CMake ...)', description='Lutin generic builder (might replace makefile, CMake ...)',
long_description=readme(), long_description=readme(),
url='http://github.com/HeeroYui/lutin', url='http://github.com/HeeroYui/lutin',