浏览代码

UPD: Use different directories (cpu architecture) for third party libraries

Alexander Koblov 15 年之前
父节点
当前提交
432ce2323f
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 5 5
      install/create_packages.bat
  2. 5 5
      install/create_packages.sh

+ 5 - 5
install/create_packages.bat

@@ -32,11 +32,6 @@ rem Copy needed files
 copy windows\doublecmd.iss %BUILD_PACK_DIR%\
 copy windows\doublecmd.iss %BUILD_PACK_DIR%\
 copy windows\portable.diff %BUILD_PACK_DIR%\
 copy windows\portable.diff %BUILD_PACK_DIR%\
 
 
-rem Copy libraries
-copy windows\lib\*.dll %BUILD_DC_TMP_DIR%\
-
-cd /D %BUILD_DC_TMP_DIR%
-
 rem Get processor architecture
 rem Get processor architecture
 if "%CPU_TARGET%" == "" (
 if "%CPU_TARGET%" == "" (
   if "%PROCESSOR_ARCHITECTURE%" == "x86" (
   if "%PROCESSOR_ARCHITECTURE%" == "x86" (
@@ -48,6 +43,11 @@ if "%CPU_TARGET%" == "" (
   )
   )
 )
 )
 
 
+rem Copy libraries
+copy windows\lib\%CPU_TARGET%\*.dll    %BUILD_DC_TMP_DIR%\
+
+cd /D %BUILD_DC_TMP_DIR%
+
 rem Build all components of Double Commander
 rem Build all components of Double Commander
 call _make.bat all
 call _make.bat all
 
 

+ 5 - 5
install/create_packages.sh

@@ -21,11 +21,6 @@ cp -a ../.svn/entries $BUILD_DC_TMP_DIR/.svn/
 # Copy package description file
 # Copy package description file
 cp linux/description-pak $BUILD_DC_TMP_DIR/
 cp linux/description-pak $BUILD_DC_TMP_DIR/
 
 
-# Copy libraries
-cp -a linux/lib/*.so $BUILD_DC_TMP_DIR/
-
-cd $BUILD_DC_TMP_DIR
-
 # Set widgetset
 # Set widgetset
 if [ -z $1 ]
 if [ -z $1 ]
   then export lcl=gtk2
   then export lcl=gtk2
@@ -37,6 +32,11 @@ if [ -z $CPU_TARGET ]
   then export CPU_TARGET=$(fpc -iTP)
   then export CPU_TARGET=$(fpc -iTP)
 fi
 fi
 
 
+# Copy libraries
+cp -a linux/lib/$CPU_TARGET/*.so    $BUILD_DC_TMP_DIR/
+
+cd $BUILD_DC_TMP_DIR
+
 # Build all components of Double Commander
 # Build all components of Double Commander
 ./_make.sh all
 ./_make.sh all