File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ else()
148
148
set (SDL_STATUS "SDL2" )
149
149
endif ()
150
150
151
- # bundled libraries
151
+ # common bundled libraries
152
152
153
153
add_subdirectory (ext )
154
154
@@ -186,6 +186,7 @@ if(SCALE)
186
186
set (SCALE_STATUS "Enabled, scale2x" )
187
187
target_compile_definitions (OpenJazz PRIVATE SCALE )
188
188
set (OJ_LIBS_SCALE scale2x )
189
+ add_subdirectory (ext/scale2x )
189
190
elseif (NOT LEGACY_SDL )
190
191
# FIXME: add codepath for gpu scaling
191
192
set (SCALE_STATUS "Disabled (currently broken in SDL2 port)" )
Original file line number Diff line number Diff line change @@ -28,22 +28,3 @@ add_library(psmplug STATIC
28
28
psmplug/tables.h
29
29
)
30
30
target_include_directories (psmplug PUBLIC psmplug )
31
-
32
- if (SCALE )
33
- # scale2x
34
-
35
- include (Find -Restrict-Keyword )
36
-
37
- add_library (scale2x STATIC
38
- scale2x/scale2x.cpp
39
- scale2x/scale2x.h
40
- scale2x/scale3x.cpp
41
- scale2x/scale3x.h
42
- scale2x/scalebit.cpp
43
- scale2x/scalebit.h
44
- )
45
- target_compile_definitions (scale2x PRIVATE
46
- USE_SCALE_RANDOMWRITE
47
- restrict=${RESTRICT_KEYWORD} )
48
- target_include_directories (scale2x PUBLIC scale2x )
49
- endif ()
Original file line number Diff line number Diff line change
1
+ # scale2x
2
+
3
+ include (Find -Restrict-Keyword )
4
+
5
+ add_library (scale2x STATIC
6
+ scale2x.cpp
7
+ scale2x.h
8
+ scale3x.cpp
9
+ scale3x.h
10
+ scalebit.cpp
11
+ scalebit.h
12
+ )
13
+ target_compile_definitions (scale2x PRIVATE
14
+ USE_SCALE_RANDOMWRITE
15
+ restrict=${RESTRICT_KEYWORD} )
16
+ target_include_directories (scale2x PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
You can’t perform that action at this time.
0 commit comments