--enable-clock_gettime use a very accurate timing function
--enable-debug compile in assertion checks and other debug helps
--enable-double-precision use larger floating-point numbers
- --enable-hotloading watch assets and automatically reload them
+ --enable-hotload automatically reload modified game assets
--enable-threads use threads for concurrency where appropriate
--with-gtk use the gtk2 toolkit (overrides --with-qt4)
config.NDEBUG = true
end
-config.USE_CLOCK_GETTIME = get_feature("clock_gettime")
-config.USE_DOUBLE_PRECISION = get_feature("double-precision")
-config.USE_HOTLOADING = get_feature("hotloading")
-config.USE_THREADS = get_feature("threads")
-config.PROFILING_ENABLED = get_feature("profile") and add_cflag("-pg")
-
-if get_package("gtk") then
- -- TODO
+config.ENABLE_CLOCK_GETTIME = get_feature("clock_gettime")
+config.ENABLE_DOUBLE_PRECISION = get_feature("double-precision")
+config.ENABLE_HOTLOADING = get_feature("hotload")
+config.ENABLE_THREADS = get_feature("threads")
+if get_feature("profile") then
+ config.ENABLE_PROFILING = true
+ add_cflag("-pg")
+ LDFLAGS = LDFLAGS .. "-pg"
end
-if get_package("qt4") then
- -- TODO
-end
+if get_package("gtk") then config.WITH_GTK = true end
+if get_package("qt4") then config.WITH_QT4 = true end
--