-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
594 lines (498 loc) · 18.9 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
#cmake ver req
cmake_minimum_required(VERSION 2.8.3)
if(NOT CMAKE_BUILD_TYPE )
set(CMAKE_BUILD_TYPE Release CACHE STRING "Select if you want to build Debug or Release" FORCE )
endif()
#project name
set(project_name fea)
project(${project_name})
set(${project_name}_VERSION_MAJOR 0)
set(${project_name}_VERSION_MINOR 9)
set(${project_name}_VERSION_PATCH 9)
set(${project_name}_VERSION
${${project_name}_VERSION_MAJOR}.${${project_name}_VERSION_MINOR}.${${project_name}_VERSION_PATCH})
set(SHARED_BUILD TRUE CACHE BOOL "Set this to false if you want a static build")
set(BUILD_AUDIO TRUE CACHE BOOL "Selects if the audio module should be built")
set(BUILD_STRUCTURE TRUE CACHE BOOL "Selects if the structure module should be built")
set(BUILD_ENTITY TRUE CACHE BOOL "Selects if the entity module should be built")
set(BUILD_RENDERING TRUE CACHE BOOL "Selects if the rendering module should be built")
set(BUILD_UI TRUE CACHE BOOL "Selects if the UI module should be built")
set(BUILD_UTIL TRUE CACHE BOOL "Selects if the util module should be built")
set(BUILD_SFMLBACKENDS FALSE CACHE BOOL "Selects if the SFML backends should be built")
set(BUILD_SDLBACKENDS FALSE CACHE BOOL "Selects if the SDL backends should be built")
set(BUILD_SDL2BACKENDS FALSE CACHE BOOL "Selects if the SDL2 backends should be built")
set(BUILD_JSON TRUE CACHE BOOL "Selects if the json (de)serialization functions should be built")
set(INSTALL_PKGCONFIG_FILES TRUE CACHE BOOL "Selects if pkg-config .pc files should be generated and installed")
set(SDK_PATH "" CACHE PATH "Optional path to the Featherkit SDK. If this is not set, the dependencies have to be handled manually.")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) #for shared libs
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) #for static libs
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) #for static libs
SET(CMAKE_DEBUG_POSTFIX "-d")
if(SHARED_BUILD)
set(SHARED_OR_STATIC SHARED)
add_definitions(-DFEA_SHARED=1)
else(SHARED_BUILD)
set(SHARED_OR_STATIC STATIC)
endif(SHARED_BUILD)
if(WIN32)
set(FEATHERKIT_MISC_DIR .)
set(WINFIX SYSTEM)
else()
set(FEATHERKIT_MISC_DIR share/featherkit)
endif()
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/")
set(USE_NATIVE_OPTIMIZATIONS FALSE CACHE BOOL "Use GCC-like compiler's support for native instruction set detection and use.")
if(USE_NATIVE_OPTIMIZATIONS)
if(NOT MSVC)
set(CPP_CPU_OPTIMISE_FLAGS "-march=native")
endif()
endif()
set(USE_SSE_OPTIMIZATIONS FALSE CACHE BOOL "Use compiler's support for SSE3 instruction set detection and use.")
if(USE_SSE_OPTIMIZATIONS)
if(MSVC)
set(CPP_CPU_OPTIMISE_FLAGS "${CPP_CPU_OPTIMISE_FLAGS} /arch:SSE2")
else()
if(USE_NATIVE_OPTIMIZATIONS)
set(CPP_CPU_OPTIMISE_FLAGS "${CPP_CPU_OPTIMISE_FLAGS} -mfpmath=sse")
else()
set(CPP_CPU_OPTIMISE_FLAGS "${CPP_CPU_OPTIMISE_FLAGS} -msse3 -mfpmath=sse")
endif()
endif()
endif()
if(NOT MSVC)
set(CPP_11_FLAG -std=c++11)
endif()
#if(MINGW OR CMAKE_COMPILER_IS_GNUCXX OR Clang)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -Werror -Wshadow -Wconversion -Wno-long-long -pedantic -Wconstant-conversion")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_11_FLAG} ${CPP_CPU_OPTIMISE_FLAGS}")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
#endif()
add_definitions(-DFEA_EXPORT=1)
if(BUILD_JSON)
find_package(JsonCpp REQUIRED)
if(JSONCPP_FOUND)
include_directories(${JSONCPP_INCLUDE_DIRS})
add_definitions(-DUSE_JSONCPP)
endif()
endif()
if(BUILD_AUDIO)
##Audio module##
set(DISABLE_EFX FALSE CACHE BOOL "Set to true to disable the OpenAL EFX extension. Useful for some systems")
if(DISABLE_EFX)
add_definitions(-DFEA_NO_EFX)
endif()
find_package(OpenAL REQUIRED)
if(OPENAL_FOUND)
include_directories(${OPENAL_INCLUDE_DIR})
endif()
find_package(VorbisFile REQUIRED)
if(VorbisFile_FOUND)
include_directories(${VorbisFile_INCLUDE_DIR})
endif()
find_package(OGG REQUIRED)
if(OGG_FOUND)
include_directories(${OGG_INCLUDE_DIR})
endif()
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-audio)
set(audio_source_files
src/audio/audio.cpp
src/audio/audiobase.cpp
src/audio/audiobuffer.cpp
src/audio/audiofile.cpp
src/audio/audiofilestream.cpp
src/audio/audioplayer.cpp
src/audio/audiosample.cpp
src/audio/audiostream.cpp
src/audio/audiofilenotfoundexception.cpp
src/audio/listener.cpp
src/audio/playsource.cpp
src/audio/oscillator.cpp)
set(audio_header_files
include/fea/audio/openal.hpp
include/fea/audio/audio.hpp
include/fea/audio/audiobase.hpp
include/fea/audio/audiobuffer.hpp
include/fea/audio/audiofile.hpp
include/fea/audio/audiofilestream.hpp
include/fea/audio/audioplayer.hpp
include/fea/audio/audiosample.hpp
include/fea/audio/audiostream.hpp
include/fea/audio/audiofilenotfoundexception.hpp
include/fea/audio/listener.hpp
include/fea/audio/playsource.hpp
include/fea/audio/oscillator.hpp)
if(NOT EMSCRIPTEN)
set(audio_efx_source_files
src/audio/audioeffect.cpp
src/audio/audiofilter.cpp
src/audio/effectslot.cpp
src/audio/efx/chorus.cpp
src/audio/efx/compressor.cpp
src/audio/efx/distortion.cpp
src/audio/efx/echo.cpp
src/audio/efx/equalizer.cpp
src/audio/efx/flanger.cpp
src/audio/efx/lowpassfilter.cpp
src/audio/efx/presets.cpp
src/audio/efx/reverb.cpp
src/audio/efx/ringmodulator.cpp)
set(audio_efx_header_files
include/fea/audio/audioeffect.hpp
include/fea/audio/audiofilter.hpp
include/fea/audio/effectslot.hpp
include/fea/audio/efx/chorus.hpp
include/fea/audio/efx/compressor.hpp
include/fea/audio/efx/distortion.hpp
include/fea/audio/efx/echo.hpp
include/fea/audio/efx/equalizer.hpp
include/fea/audio/efx/flanger.hpp
include/fea/audio/efx/lowpassfilter.hpp
include/fea/audio/efx/presets.hpp
include/fea/audio/efx/reverb.hpp
include/fea/audio/efx/ringmodulator.hpp)
endif()
add_library(${project_name}-audio ${SHARED_OR_STATIC}
${audio_source_files}
${audio_header_files}
${audio_efx_source_files}
${audio_efx_header_files})
target_link_libraries(${project_name}-audio ${OPENAL_LIBRARY} ${VorbisFile_LIBRARIES} ${OGG_LIBRARIES})
endif()
if(BUILD_STRUCTURE)
##Structure module##
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-structure)
set(structure_source_files
src/structure/application.cpp
src/structure/gamestatemachine.cpp)
set(structure_header_files include/fea/structure/application.hpp
include/fea/structure/gamestate.hpp
include/fea/structure/gamestatemachine.hpp)
add_library(${project_name}-structure ${SHARED_OR_STATIC}
${structure_source_files}
${structure_header_files})
endif()
if(BUILD_ENTITY)
##Entity module##
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-entity)
set(entity_source_files
src/entity/entity.cpp
src/entity/entitycontroller.cpp
src/entity/entityfactory.cpp
src/entity/filenotfoundexception.cpp
src/entity/entitystorage.cpp
src/entity/entitymanager.cpp
src/entity/basictypeadder.cpp
src/entity/glmtypeadder.cpp)
set(entity_header_files
include/fea/entity/entity.hpp
include/fea/entity/entity.inl
include/fea/entity/entityfactory.hpp
include/fea/entity/entityfactory.inl
include/fea/entity/filenotfoundexception.hpp
include/fea/entity/entitycontroller.hpp
include/fea/entity/entitymanager.hpp
include/fea/entity/entitymanager.inl
include/fea/entity/entitystorage.hpp
include/fea/entity/entitystorage.inl
include/fea/entity/entitytemplate.hpp
include/fea/entity/basictypeadder.hpp
include/fea/entity/glmtypeadder.hpp)
if(BUILD_JSON)
set(entity_json_source_files
src/entity/jsonentityloader.cpp)
set(entity_json_header_files
include/fea/entity/jsonentityloader.hpp)
endif()
add_library(${project_name}-entity ${SHARED_OR_STATIC}
${entity_source_files}
${entity_header_files}
${entity_json_source_files}
${entity_json_header_files})
target_link_libraries(${project_name}-entity ${JSONCPP_LIBRARIES})
endif()
if(BUILD_RENDERING)
set(BUILD_RENDERING_TEXT TRUE CACHE BOOL "Selects if text rendering should be built (requires freetype2)")
##Rendering module##
find_package(GLM REQUIRED)
if(GLM_FOUND)
include_directories(${WINFIX} ${GLM_INCLUDE_DIRS})
endif()
find_package(OpenGL REQUIRED)
if(OPENGL_FOUND)
include_directories(${OPENGL_INCLUDE_DIRS})
endif(OPENGL_FOUND)
if(BUILD_RENDERING_TEXT)
FIND_PACKAGE( Freetype REQUIRED )
include_directories(${FREETYPE_INCLUDE_DIRS})
endif(BUILD_RENDERING_TEXT)
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-rendering)
set(rendering_source_files
src/rendering/animatedquad.cpp
src/rendering/animation.cpp
src/rendering/camera.cpp
src/rendering/color.cpp
src/rendering/defaultshader.cpp
src/rendering/drawable2d.cpp
src/rendering/hsvcolor.cpp
src/rendering/projection.cpp
src/rendering/quad.cpp
src/rendering/renderer2d.cpp
src/rendering/rendertarget.cpp
src/rendering/repeatedquad.cpp
src/rendering/shader.cpp
src/rendering/subrectquad.cpp
src/rendering/texture.cpp
src/rendering/tilemap.cpp
src/rendering/uniform.cpp
src/rendering/vertexattribute.cpp
src/rendering/viewport.cpp)
set(rendering_header_files
include/fea/rendering/animatedquad.hpp
include/fea/rendering/animation.hpp
include/fea/rendering/camera.hpp
include/fea/rendering/color.hpp
include/fea/rendering/defaultshader.hpp
include/fea/rendering/drawable2d.hpp
include/fea/rendering/gl_core_3_2.h
include/fea/rendering/glmhash.hpp
include/fea/rendering/hsvcolor.hpp
include/fea/rendering/opengl.hpp
include/fea/rendering/projection.hpp
include/fea/rendering/quad.hpp
include/fea/rendering/renderer2d.hpp
include/fea/rendering/renderentity.hpp
include/fea/rendering/rendertarget.hpp
include/fea/rendering/repeatedquad.hpp
include/fea/rendering/shader.hpp
include/fea/rendering/subrectquad.hpp
include/fea/rendering/texture.hpp
include/fea/rendering/tilemap.hpp
include/fea/rendering/uniform.hpp
include/fea/rendering/vertexattribute.hpp
include/fea/rendering/viewport.hpp)
if(NOT EMSCRIPTEN)
set(rendering_gl_core_source_files
src/rendering/gl_core_3_2.c)
endif()
if(BUILD_RENDERING_TEXT)
set(freetype_gl_source_files
src/freetype-gl/platform.c
src/freetype-gl/texture-atlas.c
src/freetype-gl/texture-font.c
src/freetype-gl/vector.c)
set(freetype_gl_header_files
include/fea/freetype-gl/platform.h
include/fea/freetype-gl/texture-atlas.h
include/fea/freetype-gl/texture-font.h
include/fea/freetype-gl/vec234.h
include/fea/freetype-gl/vector.h)
set(rendering_text_source_files
src/rendering/textsurface.cpp
src/rendering/font.cpp)
set(rendering_text_header_files
include/fea/rendering/textsurface.hpp
include/fea/rendering/font.hpp
include/fea/rendering/font.inl)
endif(BUILD_RENDERING_TEXT)
add_library(${project_name}-rendering ${SHARED_OR_STATIC}
${rendering_source_files}
${rendering_header_files}
${rendering_gl_core_source_files}
${freetype_gl_source_files}
${freetype_gl_header_files}
${rendering_text_source_files}
${rendering_text_header_files})
target_link_libraries(${project_name}-rendering ${OPENGL_LIBRARIES} ${FREETYPE_LIBRARY})
endif()
if(BUILD_UI)
##UI module##
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-ui)
#find all source files
set(ui_source_files
src/ui/actiontrigger.cpp
src/ui/inputhandler.cpp
src/ui/inputfilenotfoundexception.cpp
src/ui/contextsettings.cpp
src/ui/videomode.cpp
src/ui/window.cpp)
set(ui_header_files
#include/fea/ui/contextsettings.hpp
include/fea/ui/vec2i.hpp
include/fea/ui/videomode.hpp
include/fea/ui/windowbackend.hpp
include/fea/ui/window.hpp
include/fea/ui/windowstyle.hpp
include/fea/ui/actionhandler.hpp
include/fea/ui/actionhandler.inl
include/fea/ui/actiontrigger.hpp
include/fea/ui/event.hpp
include/fea/ui/gamepad.hpp
include/fea/ui/inputbackend.hpp
include/fea/ui/inputfilenotfoundexception.hpp
include/fea/ui/inputhandler.hpp
include/fea/ui/keyboard.hpp
include/fea/ui/mouse.hpp)
if(BUILD_JSON)
set(ui_json_header_files
include/fea/ui/jsonactioniohandler.hpp
include/fea/ui/jsonactioniohandler.inl)
endif()
add_library(${project_name}-ui ${SHARED_OR_STATIC}
${ui_header_files}
${ui_source_files}
${ui_json_header_files})
target_link_libraries(${project_name}-ui ${JSONCPP_LIBRARIES})
if(${BUILD_SFMLBACKENDS})
find_package(SFML 2.0 COMPONENTS system window REQUIRED)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
endif(SFML_FOUND)
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-sfml)
set(ui_sfml_backend_source_files
src/ui/sfmlwindowbackend.cpp
#src/ui/contextsettings.cpp
src/ui/sfmlinputbackend.cpp)
set(ui_sfml_backend_header_files
include/fea/ui/sfmlwindowbackend.hpp
include/fea/ui/sfmlinputbackend.hpp)
add_library(${project_name}-sfml ${SHARED_OR_STATIC}
${ui_sfml_backend_source_files}
${ui_sfml_backend_header_files})
target_link_libraries(${project_name}-sfml ${SFML_LIBRARIES} ${project_name}-ui)
endif()
if(${BUILD_SDLBACKENDS})
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-sdl)
if(NOT EMSCRIPTEN)
find_package(SDL REQUIRED)
if(SDL_FOUND)
include_directories(${SDL_INCLUDE_DIR})
endif(SDL_FOUND)
endif()
set(ui_sdl_backend_source_files
src/ui/sdlwindowbackend.cpp
#src/ui/contextsettings.cpp
src/ui/sdlinputbackend.cpp)
set(ui_sdl_backend_header_files
include/fea/ui/sdlwindowbackend.hpp
include/fea/ui/sdlinputbackend.hpp)
add_library(${project_name}-sdl ${SHARED_OR_STATIC}
${ui_sdl_backend_source_files}
${ui_sdl_backend_header_files})
target_link_libraries(${project_name}-sdl ${SDL_LIBRARY} ${project_name}-ui)
endif()
if(${BUILD_SDL2BACKENDS})
find_package(SDL2 REQUIRED)
if(SDL2_FOUND)
include_directories(${SDL2_INCLUDE_DIR})
elseif(SDK_PATH)
link_directories(${SDK_PATH}/SDL-2.0/lib)
include_directories(${SDK_PATH}/SDL-2.0/include)
endif(SDL2_FOUND)
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-sdl2)
set(ui_sdl2_backend_source_files
src/ui/sdl2windowbackend.cpp
#src/ui/contextsettings.cpp
src/ui/sdl2inputbackend.cpp)
set(ui_sdl2_backend_header_files
include/fea/ui/sdl2windowbackend.hpp
include/fea/ui/sdl2inputbackend.hpp)
add_library(${project_name}-sdl2 ${SHARED_OR_STATIC}
${ui_sdl2_backend_source_files}
${ui_sdl2_backend_header_files})
target_link_libraries(${project_name}-sdl2 ${SDL2_LIBRARY} ${project_name}-ui)
endif()
endif()
if(BUILD_UTIL)
##Util module##
set(BUILT_TARGETS ${BUILT_TARGETS} ${project_name}-util)
#find all source files
set(util_source_files
src/util/frametimer.cpp
src/util/messagebus.cpp
src/util/noise.cpp
src/util/simplexnoise.cpp
src/util/voronoinoise.cpp
src/util/whitenoise.cpp
)
set(util_header_files
include/fea/util/frametimer.hpp
include/fea/util/loosentree.hpp
include/fea/util/loosentree.inl
include/fea/util/messagebus.hpp
include/fea/util/messagebus.inl
include/fea/util/messagereceiver.hpp
include/fea/util/pathfinder.hpp
include/fea/util/pathfinder.inl
include/fea/util/noise.hpp
include/fea/util/simplexnoise.hpp
include/fea/util/voronoinoise.hpp
include/fea/util/whitenoise.hpp
)
add_library(${project_name}-util ${SHARED_OR_STATIC}
${util_header_files}
${util_source_files})
target_link_libraries(${project_name}-util)
endif()
if(INSTALL_PKGCONFIG_FILES)
if(BUILD_AUDIO)
set(PKGMODULE_AUDIO fea-audio)
endif()
if(BUILD_ENTITY)
set(PKGMODULE_ENTITY fea-entity)
endif()
if(BUILD_RENDERING)
set(PKGMODULE_RENDERING fea-rendering)
if(BUILD_RENDERING_TEXT)
set(PKGREQ_FREETYPE2 freetype2)
endif()
endif()
if(BUILD_STRUCTURE)
set(PKGMODULE_STRUCTURE fea-structure)
endif()
if(BUILD_UI)
set(PKGMODULE_UI fea-ui)
endif()
if(BUILD_UTIL)
set(PKGMODULE_UTIL fea-util)
endif()
if(BUILD_SDLBACKENDS)
set(PKGMODULE_SDL fea-sdl)
endif()
if(BUILD_SDL2BACKENDS)
set(PKGMODULE_SDL2 fea-sdl2)
endif()
if(BUILD_JSON)
set(PKGREQ_JSONCPP jsoncpp)
endif()
foreach(module IN ITEMS
${PKGMODULE_AUDIO}
${PKGMODULE_ENTITY}
${PKGMODULE_RENDERING}
${PKGMODULE_STRUCTURE}
${PKGMODULE_UI}
${PKGMODULE_UTIL}
${PKGMODULE_SDL}
${PKGMODULE_SDL2})
configure_file(
"pkg-config/${module}.pc.in"
"pkg-config/${module}.pc"
@ONLY)
install(FILES "${CMAKE_BINARY_DIR}/pkg-config/${module}.pc"
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
endforeach()
endif()
install(
DIRECTORY include
DESTINATION .
)
install(
TARGETS ${BUILT_TARGETS}
RUNTIME DESTINATION bin COMPONENT bin
LIBRARY DESTINATION lib COMPONENT bin
ARCHIVE DESTINATION lib COMPONENT dev
)
install(
FILES README.md license.txt
DESTINATION ${FEATHERKIT_MISC_DIR}
)