Skip to content

Commit 5fb50c8

Browse files
committed
fix linux compile
1 parent c92b21b commit 5fb50c8

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

build/build.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,7 @@ do
374374

375375
cd -
376376

377-
local_library_install_path=$cfg_platform_name/$archive_name/prebuilt/$original_arch_name
378-
mkdir -p $cfg_platform_name/include/$archive_name
379-
if [ $cfg_platform_name = "android" ];then
380-
local_library_install_path=$cfg_platform_name/$original_arch_name
381-
fi
377+
local_library_install_path=$cfg_platform_name/$original_arch_name
382378

383379
if [ ! -d $local_library_install_path ]; then
384380
echo "create folder for library with specify arch. $local_library_install_path"
@@ -405,7 +401,7 @@ do
405401
for dep_archive in ${original_dependent_archive_list[@]}
406402
do
407403
local_library_install_path=$cfg_platform_name/${dep_archive}/prebuilt/$original_arch_name
408-
if [ $cfg_platform_name = "android" ];then
404+
if [ $cfg_platform_name = "android"] || [ $cfg_platform_name = "linux" ];then
409405
local_library_install_path=$cfg_platform_name/$original_arch_name
410406
fi
411407
mkdir -p $local_library_install_path
@@ -416,10 +412,11 @@ do
416412

417413

418414
echo "Copying needed heder files"
415+
mkdir -p $cfg_platform_name/$arch/include/$archive_name
419416
copy_include_file_path=${lib}_header_files
420417
src_directory=$top_dir/contrib/$install_library_path/$arch/include/${!copy_include_file_path}
421418
echo $src_directory
422-
destination_header_path=$cfg_platform_name/include/$archive_name/
419+
destination_header_path=$cfg_platform_name/$arch/include/$archive_name/
423420
if [ -d $src_directory ];then
424421
cp -r $src_directory/* $destination_header_path
425422
else

build/linux.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ cfg_i386_host_machine="i386-linux-gnu"
1717

1818

1919
cfg_all_supported_arches=("i386" "x86_64")
20-
cfg_all_supported_libraries=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl" "edtaa3func" "xxhash" "xxtea" "convertutf" "flatbuffer" "minizip" "tinyxml" "cjson" "luasocket")
20+
cfg_all_supported_libraries=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl" "edtaa3func" "xxhash" "xxtea" "convertutf" "flatbuffers" "minizip" "tinyxml2" "cjson" "luasocket" "box2d" "glfw")
2121
cfg_default_arches_all=("x86_64")
22-
cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl" "edtaa3func" "xxhash" "xxtea" "convertutf" "flatbuffer" "minizip" "tinyxml" "cjson" "luasocket")
22+
cfg_default_libraries_all=("png" "zlib" "lua" "luajit" "websockets" "curl" "freetype" "jpeg" "tiff" "webp" "chipmunk" "openssl" "edtaa3func" "xxhash" "xxtea" "convertutf" "flatbuffers" "minizip" "tinyxml2" "cjson" "luasocket" "box2d" "glfw")
2323

2424

2525
cfg_build_fat_library=no
26-
cfg_build_release_mode="-O3 -DNDEBUG"
27-
cfg_build_debug_mode="-O0 -g -DDEBUG"
26+
cfg_build_release_mode="-O3 -DNDEBUG "
27+
cfg_build_debug_mode="-O0 -g -DDEBUG "
2828

contrib/src/flatbuffers/rules.mak

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ FLATBUFFERS_GITURL := https://github.com/google/flatbuffers.git
55
$(TARBALLS)/flatbuffers-git.tar.xz:
66
$(call download_git,$(FLATBUFFERS_GITURL),master,1e4d28b)
77

8-
98
.sum-flatbuffers: flatbuffers-git.tar.xz
109
$(warning $@ not implemented)
1110
touch $@

contrib/src/luasocket/rules.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ luasocket: libluasocket-git.tar.xz .sum-luasocket
1818
# DEPS_luasocket = lua $(DEPS_lua)
1919

2020
.luasocket: luasocket toolchain.cmake
21-
cd $< && $(HOSTVARS) ${CMAKE} -DLUA_INCLUDE_DIR=$(PREFIX)
21+
cd $< && $(HOSTVARS) ${CMAKE} -DLUA_INCLUDE_DIR=$(PREFIX) -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX)
2222
cd $< && $(MAKE) VERBOSE=1 install
2323
touch $@

contrib/src/tinyxml2/rules.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ tinyxml2: libtinyxml2-git.tar.xz .sum-tinyxml2
1717
$(MOVE)
1818

1919
.tinyxml2: tinyxml2 toolchain.cmake
20-
cd $< && $(HOSTVARS) ${CMAKE}
20+
cd $< && $(HOSTVARS) ${CMAKE} -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX)
2121
cd $< && $(MAKE) VERBOSE=1 install
2222
touch $@

0 commit comments

Comments
 (0)