/[pcsx2_0.9.7]/trunk/3rdparty/bzip2/CMakeLists.txt
ViewVC logotype

Diff of /trunk/3rdparty/bzip2/CMakeLists.txt

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

revision 61 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 1  Line 1 
1  # bzip2 library  # bzip2 library
2    
3  # library name  # library name
4  set(bzip2Name bzip2)  set(Output pcsx2_bzip2)
5    
6    set(CommonFlags
7        -march=athlon-xp
8        -march=prescott
9        )
10    
11    set(OptimizationFlags
12        -Os
13        -W
14        )
15    
16  # Debug - Build  # Debug - Build
17  if(CMAKE_BUILD_TYPE STREQUAL Debug)  if(CMAKE_BUILD_TYPE STREQUAL Debug)
18          # add defines          # add defines
19          add_definitions(-g -O0 -march=athlon-xp -march=prescott)          add_definitions(${CommonFlags} -g)
20  endif(CMAKE_BUILD_TYPE STREQUAL Debug)  endif(CMAKE_BUILD_TYPE STREQUAL Debug)
21    
22  # Devel - Build  # Devel - Build
23  if(CMAKE_BUILD_TYPE STREQUAL Devel)  if(CMAKE_BUILD_TYPE STREQUAL Devel)
24          # add defines          # add defines
25          add_definitions(-O1 -g -W -march=athlon-xp -march=prescott)          add_definitions(${CommonFlags} ${OptimizationFlags} -g)
26  endif(CMAKE_BUILD_TYPE STREQUAL Devel)  endif(CMAKE_BUILD_TYPE STREQUAL Devel)
27    
28  # Release - Build  # Release - Build
29  if(CMAKE_BUILD_TYPE STREQUAL Release)  if(CMAKE_BUILD_TYPE STREQUAL Release)
30          # add defines          # add defines
31          add_definitions(-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott)          add_definitions(${CommonFlags} ${OptimizationFlags})
32  endif(CMAKE_BUILD_TYPE STREQUAL Release)  endif(CMAKE_BUILD_TYPE STREQUAL Release)
33    
34  # variable with all sources of this library  # variable with all sources of this library
# Line 37  set(bzip2Headers Line 47  set(bzip2Headers
47          bzlib_private.h)          bzlib_private.h)
48    
49  # add library  # add library
50  add_library(${bzip2Name} STATIC ${bzip2Sources} ${bzip2Headers})  add_library(${Output} STATIC ${bzip2Sources} ${bzip2Headers})
51    
52  # Force the linker into 32 bits mode  # User flags options
53  target_link_libraries(${bzip2Name} -m32)  if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
54        target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
55    endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

Legend:
Removed from v.61  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22