Skip to content

Commit 743859b

Browse files
committed
add comments to config file
1 parent 0de3c45 commit 743859b

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

build/android.ini

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,38 @@ cfg_default_build_libraries="all"
66
#specific default values
77
cfg_default_build_api=19
88
cfg_default_gcc_version=4.8
9-
#if you have defined the ANDROID_NDK environment, the following value won't be used
10-
cfg_android_ndk_path=/Users/guanghui/AndroidDev/android-ndk-r10c
119

1210
#help message strings goes here
1311
cfg_help_arch_string="arm,armv7,x86,arm64"
1412
cfg_help_sample_string="./build.sh -p=android --libs=png --arch=arm,armv7,arm64 --mode=debug"
1513

14+
#build machine & build host
1615
cfg_build_machine="x86_64-apple-darwin14"
1716
cfg_x86_host_machine="i686-linux-android"
1817
cfg_arm64_host_machine="aarch64-linux-android"
1918
cfg_arm_host_machine="arm-linux-androideabi"
2019
cfg_armv7_host_machine="arm-linux-androideabi"
2120

21+
#only cross compile should define thse variables
22+
cfg_is_cross_compile=yes
23+
2224
cfg_x86_toolchain_bin="${ANDROID_NDK}/toolchains/x86-${cfg_default_gcc_version}/prebuilt/darwin-x86_64/bin"
2325
cfg_arm64_toolchain_bin="${ANDROID_NDK}/toolchains/aarch64-linux-android-${cfg_default_gcc_version}/prebuilt/darwin-x86_64/bin"
2426
cfg_arm_toolchain_bin="${ANDROID_NDK}/toolchains/arm-linux-androideabi-${cfg_default_gcc_version}/prebuilt/darwin-x86_64/bin"
2527
cfg_armv7_toolchain_bin="${ANDROID_NDK}/toolchains/arm-linux-androideabi-${cfg_default_gcc_version}/prebuilt/darwin-x86_64/bin"
2628

2729

30+
#build arches and build libraries
2831
cfg_all_supported_arches=("arm" "armv7" "x86" "arm64")
2932
cfg_all_supported_libraries=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl")
3033
cfg_default_arches_all=("arm" "armv7" "x86" "arm64")
3134
cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl")
3235

3336

37+
#whether build fat library, use lipo -S create
3438
cfg_build_fat_library=no
35-
cfg_is_cross_compile=yes
39+
40+
#debug and release mode flag
3641
cfg_build_release_mode="-O3 -DNDEBUG"
3742
cfg_build_debug_mode="-O0 -g -DDEBUG"
3843

build/build.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,6 @@ if [ $cfg_platform_name = "android" ];then
167167
exit 1
168168
fi
169169

170-
if [ ! -z $cfg_android_ndk_path ] && [ -z $ANDROID_NDK ]; then
171-
echo "export android ndk"
172-
export ANDROID_NDK=$cfg_android_ndk_path
173-
fi
174-
fi
175-
176-
if [ $cfg_platform_name = "tizen" ];then
177-
if [ ! -z $cfg_tizen_sdk_path ] && [ -z $TIZEN_SDK ];then
178-
echo "export tizen sdk"
179-
export TIZEN_SDK=$cfg_tizen_sdk_path
180-
fi
181170
fi
182171

183172
current_dir=`pwd`

build/ios.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "free
2323

2424

2525
cfg_build_fat_library=yes
26+
cfg_is_cross_compile=yes
2627
cfg_build_release_mode="-O3 -DNDEBUG"
2728
cfg_build_debug_mode="-O0 -g -DDEBUG"

build/mac.ini

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,31 @@ cfg_default_build_arches="x86_64"
55
cfg_default_build_mode="release"
66
cfg_default_build_libraries="all"
77
#specific default values
8-
# cfg_default_build_api=19
9-
# cfg_default_gcc_version=4.8
10-
# cfg_android_ndk_path=/Users/guanghui/AndroidDev/android-ndk-r9d
118

129
#help message strings goes here
1310
cfg_help_arch_string="i386,x86_64"
1411
cfg_help_sample_string="./build.sh -p=mac --libs=png --arch=i368,x86_64 --mode=debug"
1512

13+
#build machine & build host
1614
cfg_build_machine="x86_64-apple-darwin14"
1715
cfg_x86_64_host_machine="x86_64-apple-darwin"
1816
cfg_i386_host_machine="i386-apple-darwin"
1917

18+
#cross compile options
19+
cfg_is_cross_compile=no
20+
# cfg_armv7_toolchain_bin=
2021

22+
#build arches and build libraries
2123
cfg_all_supported_arches=("i386" "x86_64")
2224
cfg_all_supported_libraries=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "glfw" "openssl")
2325
cfg_default_arches_all=("x86_64" "i386")
2426
cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "glfw" "openssl")
2527

2628

29+
#whether build fat library, use lipo -S create
2730
cfg_build_fat_library="yes"
31+
32+
#debug and release mode flag
2833
cfg_build_release_mode="-O3 -DNDEBUG"
2934
cfg_build_debug_mode="-O0 -g -DDEBUG"
3035

build/tizen.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ cfg_platform_name=tizen
44
cfg_default_build_arches="all"
55
cfg_default_build_mode="release"
66
cfg_default_build_libraries="all"
7-
#specific default values
8-
#if you have defined the TIZEN_SDK environment, the following value won't be used
9-
cfg_tizen_sdk_path=/Users/guanghui/tizen-sdk
107

118
#help message strings goes here
129
cfg_help_arch_string="armv7"
1310
cfg_help_sample_string="./build.sh -p=tizen --libs=png --arch=armv7 --mode=debug"
1411

12+
#build machine & build host
1513
cfg_build_machine="x86_64-apple-darwin14"
1614
#all these values are arch-specificed values
1715
cfg_armv7_host_machine="arm-linux-gnueabi"
@@ -21,12 +19,17 @@ cfg_is_cross_compile=yes
2119
#all these values are arch-specificed values
2220
cfg_armv7_toolchain_bin="${TIZEN_SDK}/tools/arm-linux-gnueabi-gcc-4.8/bin"
2321

22+
23+
#build arches and build libraries
2424
cfg_all_supported_arches=("armv7")
2525
cfg_all_supported_libraries=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl")
2626
cfg_default_arches_all=("armv7")
2727
cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl")
2828

2929

30+
#whether build fat library, use lipo -S create
3031
cfg_build_fat_library=no
32+
33+
#debug and release mode flag
3134
cfg_build_release_mode="-O3 -DNDEBUG"
3235
cfg_build_debug_mode="-O0 -g -DDEBUG"

0 commit comments

Comments
 (0)