This repository was archived by the owner on Jul 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -212,3 +212,5 @@ if(NOT WIN32)
212212endif ()
213213include (GNUInstallDirs)
214214include (configure/coveralls.cmake)
215+
216+ option (TANGO_JPEG_MMX "Build MMX support" ON )
Original file line number Diff line number Diff line change @@ -20,21 +20,29 @@ if(WIN32)
2020 target_compile_definitions (jpeg_mmx_objects_sta PRIVATE _64BITS)
2121 else ()
2222 target_compile_options (jpeg_mmx_objects_dyn PRIVATE -O0)
23- target_compile_definitions (jpeg_mmx_objects_dyn PRIVATE JPG_USE_ASM)
24- target_compile_options (jpeg_mmx_objects_sta PRIVATE -O0)
25- target_compile_definitions (jpeg_mmx_objects_sta PRIVATE JPG_USE_ASM)
23+ target_compile_options (jpeg_mmx_objects_sta PRIVATE -O0)
24+ if (TANGO_JPEG_MMX)
25+ target_compile_definitions (jpeg_mmx_objects_dyn PRIVATE JPG_USE_ASM)
26+ target_compile_definitions (jpeg_mmx_objects_sta PRIVATE JPG_USE_ASM)
27+ endif ()
2628 endif ()
2729
2830else (WIN32 )
2931
3032 add_library (jpeg_mmx_objects OBJECT ${SOURCES} )
31- target_compile_options (jpeg_mmx_objects PRIVATE -mmmx -fPIC)
33+ if (TANGO_JPEG_MMX)
34+ target_compile_options (jpeg_mmx_objects PRIVATE -mmmx -fPIC)
35+ else ()
36+ target_compile_options (jpeg_mmx_objects PRIVATE -fPIC)
37+ endif ()
3238
3339 if (${PLATFORM} EQUAL 64)
3440 target_compile_definitions (jpeg_mmx_objects PRIVATE _64BITS)
3541 else ()
3642 target_compile_options (jpeg_mmx_objects PRIVATE -O0)
37- target_compile_definitions (jpeg_mmx_objects PRIVATE JPG_USE_ASM)
43+ if (TANGO_JPEG_MMX)
44+ target_compile_definitions (jpeg_mmx_objects PRIVATE JPG_USE_ASM)
45+ endif ()
3846 endif ()
3947
4048endif (WIN32 )
You can’t perform that action at this time.
0 commit comments