/[pcsx2_0.9.7]/trunk/cmake/BuildParameters.cmake
ViewVC logotype

Diff of /trunk/cmake/BuildParameters.cmake

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/cmake/BuildParameters.cmake	2010/09/13 19:49:07	185
+++ trunk/cmake/BuildParameters.cmake	2011/02/25 17:31:09	401
@@ -5,10 +5,13 @@
 # Use all         internal lib: -DFORCE_INTERNAL_ALL=TRUE
 # Use soundtouch  internal lib: -DFORCE_INTERNAL_SOUNDTOUCH=TRUE
 # Use zlib        internal lib: -DFORCE_INTERNAL_ZLIB=TRUE
+### Miscellaneous
+# Select install dir of l10n  : -DL10N_PORTABLE=TRUE(bin/Langs)|FALSE(FHS, /usr...)
 ### Add some flags to the build process
 # control C flags             : -DUSER_CMAKE_C_FLAGS="cflags"
 # control C++ flags           : -DUSER_CMAKE_CXX_FLAGS="cxxflags"
 # control link flags          : -DUSER_CMAKE_LD_FLAGS="ldflags"
+# Special mode to ease package: -DPACKAGE_MODE=TRUE
 #-------------------------------------------------------------------------------
 
 #-------------------------------------------------------------------------------
@@ -113,6 +116,13 @@
 string(STRIP "${CMAKE_CXX_FLAGS} -m32 -msse -msse2 -march=i686 -pthread" CMAKE_CXX_FLAGS)
 
 #-------------------------------------------------------------------------------
+# By default use the standard compilation mode
+#-------------------------------------------------------------------------------
+if(NOT DEFINED PACKAGE_MODE)
+    set(PACKAGE_MODE FALSE)
+endif(NOT DEFINED PACKAGE_MODE)
+
+#-------------------------------------------------------------------------------
 # Select library system vs 3rdparty
 #-------------------------------------------------------------------------------
 if(FORCE_INTERNAL_ALL)
@@ -131,3 +141,11 @@
 if(NOT DEFINED FORCE_INTERNAL_ZLIB)
     set(FORCE_INTERNAL_ZLIB FALSE)
 endif(NOT DEFINED FORCE_INTERNAL_ZLIB)
+
+#-------------------------------------------------------------------------------
+# Select library system vs 3rdparty
+#-------------------------------------------------------------------------------
+if(NOT DEFINED L10N_PORTABLE)
+    set(L10N_PORTABLE TRUE)
+    message(STATUS "Install localization file in bin/Langs by default")
+endif(NOT DEFINED L10N_PORTABLE)

 

  ViewVC Help
Powered by ViewVC 1.1.22