Changes between Version 12 and Version 13 of compile_all
- Timestamp:
- Feb 25, 2019, 5:35:36 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
compile_all
v12 v13 9 9 == Helper scripts == 10 10 11 Some scripts are provided to help configuration and compilation of projects. Using it you can compile everything easily. They are included in flair- devrepository.11 Some scripts are provided to help configuration and compilation of projects. Using it you can compile everything easily. They are included in flair-src repository. 12 12 13 * [source:flair- dev/trunk/scripts/cmake_codelite_outofsource.sh cmake_codelite_outofsource.sh]: configure a project for !CodeLite for all available toolchains14 * [source:flair- dev/trunk/scripts/flair_compile_all.sh flair_compile_all.sh]: compile libs, tools and demos with all available toolchains. It calls ''cmake_codelite_outofsource.sh'' to configure projects.13 * [source:flair-src/trunk/scripts/cmake_codelite_outofsource.sh cmake_codelite_outofsource.sh]: configure a project for !CodeLite for all available toolchains 14 * [source:flair-src/trunk/scripts/flair_compile_all.sh flair_compile_all.sh]: compile libs, tools and demos with all available toolchains. It calls ''cmake_codelite_outofsource.sh'' to configure projects. 15 15 16 16 == CMake & !CodeLite== … … 22 22 == CMake tricks == 23 23 24 All CMakeLists in flair use custom modules located in [source:flair- dev/trunk/cmake-modules flair-dev]. The 2 principal ones are:24 All CMakeLists in flair use custom modules located in [source:flair-src/trunk/cmake-modules flair-src]. The 2 principal ones are: 25 25 26 * [source:flair- dev/trunk/cmake-modules/GlobalCmakeFlair.cmake GlobalCmakeFlair.cmake]: reimplements some cmake built in functions26 * [source:flair-src/trunk/cmake-modules/GlobalCmakeFlair.cmake GlobalCmakeFlair.cmake]: reimplements some cmake built in functions 27 27 28 * [source:flair- dev/trunk/cmake-modules/FlairUseFile.cmake FlairUseFile.cmake]: used by demos/tools, it helps adding include dirs and libraries for programs using flair28 * [source:flair-src/trunk/cmake-modules/FlairUseFile.cmake FlairUseFile.cmake]: used by demos/tools, it helps adding include dirs and libraries for programs using flair 29 29 30 30 A better explanation on how to use these modules can be found [wiki:cmake_modules here]. … … 50 50 To compile all Fl-AIR stuffs, you can execute the dedicated script: 51 51 {{{ 52 $ $FLAIR_ROOT/flair- dev/scripts/flair_compile_all.sh52 $ $FLAIR_ROOT/flair-src/scripts/flair_compile_all.sh 53 53 }}} 54 54 … … 58 58 59 59 Results are the following: 60 * flair libs headers installed in ''$FLAIR_ROOT/flair- dev/include''61 * flair libs binaries installed in ''$FLAIR_ROOT/flair- bin/lib''62 * flair tools binaries installed in ''$FLAIR_ROOT/flair- bin/tools/core2-64'' (but launching scripts are in ''$FLAIR_ROOT/flair-bin/tools/scripts'')63 * flair demos binaries installed in ''$FLAIR_ROOT/flair- bin/demos''60 * flair libs headers installed in ''$FLAIR_ROOT/flair-install/include'' 61 * flair libs binaries installed in ''$FLAIR_ROOT/flair-install/lib'' 62 * flair tools binaries installed in ''$FLAIR_ROOT/flair-install/tools/core2-64'' (but launching scripts are in ''$FLAIR_ROOT/flair-bin/tools/scripts'') 63 * flair demos binaries installed in ''$FLAIR_ROOT/flair-install/demos'' 64 64 65 65 For Heudiasyc users, additional stuffs are also installed: 66 * flair hds libs headers installed in ''$FLAIR_ROOT/flair- hds/dev/include''67 * flair hds libs binaries installed in ''$FLAIR_ROOT/flair- hds/bin/lib''68 * flair hds demos binaries installed in ''$FLAIR_ROOT/flair- bin/demos''66 * flair hds libs headers installed in ''$FLAIR_ROOT/flair-install/include'' 67 * flair hds libs binaries installed in ''$FLAIR_ROOT/flair-install/lib'' 68 * flair hds demos binaries installed in ''$FLAIR_ROOT/flair-install/demos'' 69 69 70 70 … … 109 109 $ mkdir -p $FLAIR_ROOT/flair-build/<mywork>/<myproject> 110 110 $ cd $FLAIR_ROOT/flair-build/<mywork>/<myproject> 111 $ $FLAIR_ROOT/flair- dev/scripts/cmake_codelite_outofsource.sh $FLAIR_ROOT/<path_to_my_project>111 $ $FLAIR_ROOT/flair-src/scripts/cmake_codelite_outofsource.sh $FLAIR_ROOT/<path_to_my_project> 112 112 $ cd build 113 113 $ make install