Skip to content

Instantly share code, notes, and snippets.

@hsjunnesson
Created July 4, 2026 08:50
Show Gist options
  • Select an option

  • Save hsjunnesson/ddc8486cba8639501a3124d5df1df369 to your computer and use it in GitHub Desktop.

Select an option

Save hsjunnesson/ddc8486cba8639501a3124d5df1df369 to your computer and use it in GitHub Desktop.
Defold FASTBuild config
#if __WINDOWS__
; =============================================================================
; Import Environment
#import VSCMD_ARG_TGT_ARCH
#import VSCMD_ARG_HOST_ARCH
#import VCToolsInstallDir
#import WindowsSDKVersion
#import WindowsSDKDir
; =============================================================================
; Setup Environment
.BuildToolsBin = '$VCToolsInstallDir$\bin\Host$VSCMD_ARG_HOST_ARCH$\$VSCMD_ARG_TGT_ARCH$'
.MsvcCompiler = '$BuildToolsBin$\cl.exe'
.MsvcLinker = '$BuildToolsBin$\link.exe'
.MsvcLibrarian = '$BuildToolsBin$\lib.exe'
#else
Error("Unsupported platform")
#endif
Compiler('Compiler-MSVC-Windows')
{
.Executable = '$MsvcCompiler$'
.CompilerFamily = 'msvc'
}
.OutputBase = 'build'
.Windows_BaseConfig = [
.Compiler = 'Compiler-MSVC-Windows'
.CompilerOutputKeepBaseExtension = true
.CompilerOptions = ' /nologo'
+ ' /c "%1"' ; Input
+ ' /Fo"%2"' ; Output
; Defines
+ ' /D__STDC_LIMIT_MACROS'
+ ' /DDDF_EXPOSE_DESCRIPTORS'
+ ' /DWINVER=0x0600'
+ ' /D_WIN32_WINNT=0x0600'
+ ' /DNOMINMAX'
+ ' /D_CRT_SECURE_NO_WARNINGS'
+ ' /DUNICODE'
+ ' /D_UNICODE'
+ ' /DDM_PLATFORM_64BIT'
+ ' /DDM_HOSTFS=\"\"'
; Includes
+ ' /Itmp/dynamo_home/include'
+ ' /Itmp/dynamo_home/include/x86_64-win32'
+ ' /Itmp/dynamo_home/ext/include'
+ ' /Itmp/dynamo_home/ext/include/x86_64-win32'
+ ' /Itmp/dynamo_home/sdk/include'
.Librarian = '$MsvcLibrarian$'
.LibrarianOptions = '/nologo /OUT:"%2" "%1"'
+ ' /WX'
.Linker = '$MsvcLinker$'
.LinkerOptions = '/nologo "%1" /OUT:"%2"'
+ ' /WX'
+ ' /ignore:4099'
.ConfigSuffix = '' ; '' for debug, '_release' and '_headless' for those configs
.PlatformInfo = 'Windows'
.ArchInfo = 'x64'
.ExecutableExtension = '.exe'
.SharedLibExtension = '.dll'
.StaticLibExtension = '.lib'
]
.Windows_DebugConfig = [
Using(.Windows_BaseConfig)
.CompilerOptions + ' /Od' ; Disables optimization
+ ' /Ob1' ; Enables most inlining
+ ' /MT'
+ ' /Z7'
+ ' /FC'
+ ' /Gm-'
+ ' /Gy'
+ ' /Gw'
.LinkerOptions + ' /DEBUG:FULL'
+ ' /FUNCTIONPADMIN'
+ ' /OPT:NOREF'
+ ' /OPT:NOICF'
+ ' /SUBSYSTEM:CONSOLE'
.Config = 'Debug'
#if file_exists("LivePP/API/x64/LPP_API.h")
.CompilerOptions + ' /DHAS_LIVEPP=1'
+ ' /ILivePP/API/x64'
#endif
]
.Windows_ReleaseConfig = [
Using(.Windows_BaseConfig)
.LinkerOptions + ' /SUBSYSTEM:WINDOWS'
.CompilerOptions + ' /O2'
+ ' /MT'
.ShaderCompilerArguments = ''
.Config = 'Release'
.ConfigSuffix = '_release'
]
.Configs = {.Windows_DebugConfig, .Windows_ReleaseConfig}
.ProjectName = 'dmengine'
.ProjectConfigs = {}
ForEach(.Config in .Configs) {
Using(.Config)
// crash
Library('$ProjectName$-crash-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/crash/src'
+ ' /DLIB_LOG_DOMAIN=\"CRASH\"'
.LinkerOptions + ''
.CompilerInputFiles = {
'engine/crash/src/crash.cpp'
'engine/crash/src/script_crash.cpp'
'engine/crash/src/load_addrs_win32.cpp'
'engine/crash/src/backtrace_win32.cpp'
'engine/crash/src/file_win32.cpp'
}
.CompilerOutputPath = 'engine/crash/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/crash/build/$PlatformInfo$-$ArchInfo$-$Config$/libcrashext$StaticLibExtension$'
}
// ddf
Library('$ProjectName$-ddf-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/ddf/src/ddf'
+ ' /Iengine/ddf/build'
+ ' /Iengine/ddf/build/src'
.LinkerOptions + ''
.CompilerInputFiles = {
'engine/ddf/build/src/ddf/ddf_extensions.pb.cc'
'engine/ddf/build/src/ddf/ddf_extensions.cpp'
'engine/ddf/build/src/ddf/ddf_math.pb.cc'
'engine/ddf/build/src/ddf/ddf_math.cpp'
'engine/ddf/build/src/ddf/ddf_struct.pb.cc'
'engine/ddf/build/src/ddf/ddf_struct.cpp'
'engine/ddf/src/ddf/ddf.cpp'
'engine/ddf/src/ddf/ddf_load.cpp'
'engine/ddf/src/ddf/ddf_save.cpp'
'engine/ddf/src/ddf/ddf_inputbuffer.cpp'
'engine/ddf/src/ddf/ddf_util.cpp'
'engine/ddf/src/ddf/ddf_message.cpp'
'engine/ddf/src/ddf/ddf_loadcontext.cpp'
'engine/ddf/src/ddf/ddf_outputstream.cpp'
}
.CompilerOutputPath = 'engine/ddf/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/ddf/build/$PlatformInfo$-$ArchInfo$-$Config$/ddf$StaticLibExtension$'
}
// extension
Library('$ProjectName$-extension-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/extension/src'
+ ' /DLIB_LOG_DOMAIN=\"EXTENSION\"'
.CompilerInputFiles = {
'engine/extension/src/extension.cpp'
}
.CompilerOutputPath = 'engine/extension/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/extension/build/$PlatformInfo$-$ArchInfo$-$Config$/extension$StaticLibExtension$'
}
// font
Library('$ProjectName$-font-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/font/src'
+ ' /DLIB_LOG_DOMAIN=\"FONT\"'
.CompilerInputFiles = {
'engine/font/src/font.cpp'
'engine/font/src/font_ttf.cpp'
'engine/font/src/fontcollection.cpp'
'engine/font/src/text_layout.cpp'
'engine/font/src/text_layout_legacy.cpp'
'engine/font/src/text_layout_skribidi.cpp'
'engine/font/src/util.cpp'
}
.CompilerOutputPath = 'engine/font/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/font/build/$PlatformInfo$-$ArchInfo$-$Config$/font$StaticLibExtension$'
}
// gui
Library('$ProjectName$-gui-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/gui/src'
+ ' /DLIB_LOG_DOMAIN=\"GUI\"'
.CompilerInputFiles = {
'engine/gui/src/gui.cpp'
'engine/gui/src/gui_script.cpp'
}
.CompilerOutputPath = 'engine/gui/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/gui/build/$PlatformInfo$-$ArchInfo$-$Config$/gui$StaticLibExtension$'
}
// liveupdate
Library('$ProjectName$-liveupdate-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/liveupdate/src'
+ ' /DLIB_LOG_DOMAIN=\"LIVEUPDATE\"'
.CompilerInputFiles = {
'engine/liveupdate/src/liveupdate.cpp'
'engine/liveupdate/src/script_liveupdate.cpp'
}
.CompilerOutputPath = 'engine/liveupdate/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/liveupdate/build/$PlatformInfo$-$ArchInfo$-$Config$/liveupdate$StaticLibExtension$'
}
// record
Library('$ProjectName$-record-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/record/src/record'
+ ' /DLIB_LOG_DOMAIN=\"RECORD\"'
.CompilerInputFiles = {
'engine/record/src/record/record.cpp'
'engine/record/src/record/record_common.cpp'
}
.CompilerOutputPath = 'engine/record/build/$PlatformInfo$-$ArchInfo$-$Config$/record'
.LibrarianOutput = 'engine/record/build/$PlatformInfo$-$ArchInfo$-$Config$/record$StaticLibExtension$'
}
// particle
Library('$ProjectName$-particle-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/particle/src'
+ ' /Iengine/particle/proto'
+ ' /Iengine/particle/build'
+ ' /DLIB_LOG_DOMAIN=\"PARTICLE\"'
.CompilerInputFiles = {
'engine/particle/src/particle.cpp'
'engine/particle/build/proto/particle/particle_ddf.cpp'
}
.CompilerOutputPath = 'engine/particle/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/particle/build/$PlatformInfo$-$ArchInfo$-$Config$/particle$StaticLibExtension$'
}
// rig
Library('$ProjectName$-rig-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/rig/src'
+ ' /Iengine/rig/proto'
+ ' /Iengine/rig/build'
+ ' /DLIB_LOG_DOMAIN=\"RIG\"'
.CompilerInputFiles = {
'engine/rig/src/rig.cpp'
'engine/rig/build/proto/rig/rig_ddf.cpp'
}
.CompilerOutputPath = 'engine/rig/build/$PlatformInfo$-$ArchInfo$-$Config$/rig'
.LibrarianOutput = 'engine/rig/build/$PlatformInfo$-$ArchInfo$-$Config$/rig$StaticLibExtension$'
}
// platform
Library('$ProjectName$-platform-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/platform/src'
+ ' /DDM_INPUT_USE_GLFW3'
+ ' /DLIB_LOG_DOMAIN=\"PLATFORM\"'
.CompilerInputFiles = {
'engine/platform/src/window.cpp'
'engine/platform/src/platform_window_glfw3.cpp'
'engine/platform/src/platform_window_glfw3_win32.cpp'
}
.CompilerOutputPath = 'engine/platform/build/$PlatformInfo$-$ArchInfo$-$Config$/platform'
.LibrarianOutput = 'engine/platform/build/$PlatformInfo$-$ArchInfo$-$Config$/platform$StaticLibExtension$'
}
// platform_vulkan
Library('$ProjectName$-platform-vulkan-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/platform/src'
+ ' /DDM_INPUT_USE_GLFW3'
+ ' /DLIB_LOG_DOMAIN=\"PLATFORM\"'
.CompilerInputFiles = {
'engine/platform/src/window.cpp'
'engine/platform/src/platform_window_glfw3.cpp'
'engine/platform/src/platform_window_glfw3_win32.cpp'
'engine/platform/src/platform_window_glfw3_vulkan.cpp'
}
.CompilerOutputPath = 'engine/platform/build/$PlatformInfo$-$ArchInfo$-$Config$/platform_vulkan'
.LibrarianOutput = 'engine/platform/build/$PlatformInfo$-$ArchInfo$-$Config$/platform_vulkan$StaticLibExtension$'
}
// hid
Library('$ProjectName$-hid-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/hid/src'
+ ' /Iengine/hid/src/native'
+ ' /DLIB_LOG_DOMAIN=\"HID\"'
.CompilerInputFiles = {
'engine/hid/src/hid.cpp'
'engine/hid/src/native/hid_gamepad_driver_glfw.cpp'
'engine/hid/src/native/hid_native.cpp'
}
.CompilerOutputPath = 'engine/hid/build/$PlatformInfo$-$ArchInfo$-$Config$/hid'
.LibrarianOutput = 'engine/hid/build/$PlatformInfo$-$ArchInfo$-$Config$/hid$StaticLibExtension$'
}
// input
Library('$ProjectName$-input-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/input/src'
+ ' /Iengine/input/proto'
+ ' /Iengine/input/build'
+ ' /DDM_INPUT_USE_GLFW3'
+ ' /DLIB_LOG_DOMAIN=\"INPUT\"'
.CompilerInputFiles = {
'engine/input/src/input.cpp'
'engine/input/build/input/input_ddf.cpp'
}
.CompilerOutputPath = 'engine/input/build/$PlatformInfo$-$ArchInfo$-$Config$'
.LibrarianOutput = 'engine/input/build/$PlatformInfo$-$ArchInfo$-$Config$/input$StaticLibExtension$'
}
// dlib
Library('$ProjectName$-dlib-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/dlib/src'
+ ' /Iengine/dlib/src/mbedtls/defold'
+ ' /Iengine/dlib/src/mbedtls'
+ ' /Iengine/dlib/src/mbedtls/include'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/include'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/include'
+ ' /DLIB_LOG_DOMAIN=\"DLIB\"'
+ ' /DVALGRIND'
+ ' /DZLIB_CONST'
+ ' /DMINIZ_NO_TIME'
+ ' /DZIP_ENABLE_INFLATE=1'
+ ' /DZIP_ENABLE_DEFLATE=0'
+ ' /DZIP_HAVE_SYMLINK=0'
+ ' /DMBEDTLS_THREADING_ALT'
+ ' /DMBEDTLS_THREADING_C'
+ ' /DDM_MBEDTLS_DISABLE_ASM'
+ ' /DMBEDTLS_USER_CONFIG_FILE=\"mbedtls_user_config.h\"'
+ ' /DTF_PSA_CRYPTO_USER_CONFIG_FILE=\"tf_psa_crypto_user_config.h\"'
+ ' /DDM_MBEDTLS_TLS_CLIENT_ONLY'
+ ' /DDM_MBEDTLS_ERROR_C'
.CompilerInputFiles = {
'engine/dlib/src/dlib/android.cpp'
'engine/dlib/src/dlib/array.cpp'
'engine/dlib/src/dlib/buffer.cpp'
'engine/dlib/src/dlib/condition_variable_win32.cpp'
'engine/dlib/src/dlib/configfile.cpp'
'engine/dlib/src/dlib/configfile_http.cpp'
'engine/dlib/src/dlib/connection_pool.cpp'
'engine/dlib/src/dlib/crypt.cpp'
'engine/dlib/src/dlib/crypt_mbedtls.cpp'
'engine/dlib/src/dlib/dalloca.cpp'
'engine/dlib/src/dlib/dlib.cpp'
'engine/dlib/src/dlib/double_linked_list.cpp'
'engine/dlib/src/dlib/dstrings.cpp'
'engine/dlib/src/dlib/easing.cpp'
'engine/dlib/src/dlib/file_descriptor.cpp'
'engine/dlib/src/dlib/hash.cpp'
'engine/dlib/src/dlib/http_cache.cpp'
'engine/dlib/src/dlib/http_cache_verify.cpp'
'engine/dlib/src/dlib/http_client.cpp'
'engine/dlib/src/dlib/http_server.cpp'
'engine/dlib/src/dlib/http_server_private.cpp'
'engine/dlib/src/dlib/intersection.cpp'
'engine/dlib/src/dlib/jobsystem.cpp'
'engine/dlib/src/dlib/log.cpp'
'engine/dlib/src/dlib/lz4.cpp'
'engine/dlib/src/dlib/mdns.cpp'
'engine/dlib/src/dlib/memory.cpp'
'engine/dlib/src/dlib/memprofile.cpp'
'engine/dlib/src/dlib/message.cpp'
'engine/dlib/src/dlib/mutex_win32.cpp'
'engine/dlib/src/dlib/path.cpp'
'engine/dlib/src/dlib/poolallocator.cpp'
'engine/dlib/src/dlib/pprint.cpp'
'engine/dlib/src/dlib/socket.cpp'
'engine/dlib/src/dlib/sslsocket_mbedtls.cpp'
'engine/dlib/src/dlib/stringpool.cpp'
'engine/dlib/src/dlib/sys.cpp'
'engine/dlib/src/dlib/sys_win32.cpp'
'engine/dlib/src/dlib/template.cpp'
'engine/dlib/src/dlib/testutil.cpp'
'engine/dlib/src/dlib/thread_win32.cpp'
'engine/dlib/src/dlib/trig_lookup.cpp'
'engine/dlib/src/dlib/uri.cpp'
'engine/dlib/src/dlib/utf8.cpp'
'engine/dlib/src/dlib/webserver.cpp'
'engine/dlib/src/dlib/file_descriptor_win32.cpp'
'engine/dlib/src/dlib/socket_win32.cpp'
'engine/dlib/src/dlib/time_win32.cpp'
'engine/dlib/src/dlib/zip.cpp'
'engine/dlib/src/dlib/zlib.cpp'
'engine/dlib/src/lz4/lz4.c'
'engine/dlib/src/lz4/lz4hc.c'
}
.CompilerOutputPath = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/dlib'
.LibrarianOutput = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/dlib$StaticLibExtension$'
}
// mbedtls
Library('$ProjectName$-mbedtls-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/dlib/src'
+ ' /Iengine/dlib/src/mbedtls/defold'
+ ' /Iengine/dlib/src/mbedtls'
+ ' /Iengine/dlib/src/mbedtls/include'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/include'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/include'
+ ' /Iengine/dlib/src/mbedtls/library'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/core'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/dispatch'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/drivers/everest/include'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/drivers/p256-m'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/drivers/pqcp/include'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/extras'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/platform'
+ ' /Iengine/dlib/src/mbedtls/tf-psa-crypto/utilities'
+ ' /DMBEDTLS_THREADING_ALT'
+ ' /DMBEDTLS_THREADING_C'
+ ' /DDM_MBEDTLS_DISABLE_ASM'
+ ' /DMBEDTLS_USER_CONFIG_FILE=\"mbedtls_user_config.h\"'
+ ' /DTF_PSA_CRYPTO_USER_CONFIG_FILE=\"tf_psa_crypto_user_config.h\"'
+ ' /DDM_MBEDTLS_TLS_CLIENT_ONLY'
+ ' /DDM_MBEDTLS_ERROR_C'
.CompilerInputFiles = {
'engine/dlib/src/mbedtls/library/debug.c'
'engine/dlib/src/mbedtls/library/error.c'
'engine/dlib/src/mbedtls/library/mbedtls_config.c'
'engine/dlib/src/mbedtls/library/mps_reader.c'
'engine/dlib/src/mbedtls/library/mps_trace.c'
'engine/dlib/src/mbedtls/library/net_sockets.c'
'engine/dlib/src/mbedtls/library/pkcs7.c'
'engine/dlib/src/mbedtls/library/ssl_cache.c'
'engine/dlib/src/mbedtls/library/ssl_ciphersuites.c'
'engine/dlib/src/mbedtls/library/ssl_client.c'
'engine/dlib/src/mbedtls/library/ssl_cookie.c'
'engine/dlib/src/mbedtls/library/ssl_debug_helpers_generated.c'
'engine/dlib/src/mbedtls/library/ssl_msg.c'
'engine/dlib/src/mbedtls/library/ssl_ticket.c'
'engine/dlib/src/mbedtls/library/ssl_tls.c'
'engine/dlib/src/mbedtls/library/ssl_tls12_client.c'
'engine/dlib/src/mbedtls/library/ssl_tls12_server.c'
'engine/dlib/src/mbedtls/library/ssl_tls13_client.c'
'engine/dlib/src/mbedtls/library/ssl_tls13_generic.c'
'engine/dlib/src/mbedtls/library/ssl_tls13_keys.c'
'engine/dlib/src/mbedtls/library/ssl_tls13_server.c'
'engine/dlib/src/mbedtls/library/timing.c'
'engine/dlib/src/mbedtls/library/version_features.c'
'engine/dlib/src/mbedtls/library/version.c'
'engine/dlib/src/mbedtls/library/x509_create.c'
'engine/dlib/src/mbedtls/library/x509_crl.c'
'engine/dlib/src/mbedtls/library/x509_crt.c'
'engine/dlib/src/mbedtls/library/x509_csr.c'
'engine/dlib/src/mbedtls/library/x509_oid.c'
'engine/dlib/src/mbedtls/library/x509.c'
'engine/dlib/src/mbedtls/library/x509write_crt.c'
'engine/dlib/src/mbedtls/library/x509write_csr.c'
'engine/dlib/src/mbedtls/library/x509write.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_crypto_client.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_crypto_driver_wrappers_no_static.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_crypto_random.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_crypto_slot_management.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_crypto_storage.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_crypto.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_its_file.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/psa_util.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/tf_psa_crypto_config.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/core/tf_psa_crypto_version.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/aes.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/aesce.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/aesni.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/aria.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/bignum_core.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/bignum_mod_raw.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/bignum_mod.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/bignum.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/block_cipher.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/camellia.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ccm.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/chacha20_neon.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/chacha20.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/chachapoly.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/cipher_wrap.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/cipher.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/cmac.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ctr_drbg.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ecdsa.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ecjpake.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ecp_curves_new.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ecp_curves.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ecp.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/entropy_poll.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/entropy.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/gcm.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/hmac_drbg.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/md5.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/poly1305.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_aead.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_cipher.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_ecp.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_ffdh.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_hash.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_mac.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_pake.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_rsa.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_crypto_xof.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/psa_util_internal.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/ripemd160.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/rsa_alt_helpers.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/rsa.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/sha1.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/sha256.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/sha3.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/drivers/builtin/src/sha512.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/lmots.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/lms.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/md.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/nist_kw.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/pk_ecc.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/pk_rsa.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/pk_wrap.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/pk.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/pkparse.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/extras/pkwrite.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/platform/memory_buffer_alloc.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/platform/platform_util.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/platform/platform.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/platform/threading.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/asn1parse.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/asn1write.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/base64.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/constant_time.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/oid.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/pem.c'
'engine/dlib/src/mbedtls/tf-psa-crypto/utilities/pkcs5.c'
}
.CompilerOutputPath = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/mbedtls'
.LibrarianOutput = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/mbedtls$StaticLibExtension$'
}
// zip
Library('$ProjectName$-zip-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/dlib/src'
+ ' /Iengine/dlib/src/zip'
+ ' /DLIB_LOG_DOMAIN=\"DLIB\"'
+ ' /DVALGRIND'
+ ' /DZLIB_CONST'
+ ' /DMINIZ_NO_TIME'
+ ' /DZIP_ENABLE_INFLATE=1'
+ ' /DZIP_ENABLE_DEFLATE=0'
+ ' /DZIP_HAVE_SYMLINK=0'
.CompilerInputFiles = {
'engine/dlib/src/zip/zip.c'
}
.CompilerOutputPath = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/zip'
.LibrarianOutput = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/zip$StaticLibExtension$'
}
// image
Library('$ProjectName$-image-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/dlib/src'
+ ' /DLIB_LOG_DOMAIN=\"DLIB\"'
+ ' /DVALGRIND'
+ ' /DZLIB_CONST'
+ ' /DMINIZ_NO_TIME'
+ ' /DZIP_ENABLE_INFLATE=1'
+ ' /DZIP_ENABLE_DEFLATE=0'
+ ' /DZIP_HAVE_SYMLINK=0'
.CompilerInputFiles = {
'engine/dlib/src/dlib/image.cpp'
}
.CompilerOutputPath = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/image'
.LibrarianOutput = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/image$StaticLibExtension$'
}
// profile
Library('$ProjectName$-profile-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/dlib/src'
+ ' /Iengine/dlib/src/dlib/profile'
+ ' /DLIB_LOG_DOMAIN=\"DLIB\"'
+ ' /DVALGRIND'
+ ' /DZLIB_CONST'
+ ' /DMINIZ_NO_TIME'
+ ' /DZIP_ENABLE_INFLATE=1'
+ ' /DZIP_ENABLE_DEFLATE=0'
+ ' /DZIP_HAVE_SYMLINK=0'
.CompilerInputFiles = {
'engine/dlib/src/dlib/profile/profile.cpp'
}
.CompilerOutputPath = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/profile'
.LibrarianOutput = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/profile$StaticLibExtension$'
}
// basis_transcoder
Library('$ProjectName$-basis-transcoder-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/dlib/src'
+ ' /Iengine/dlib/src/basis'
+ ' /DLIB_LOG_DOMAIN=\"DLIB\"'
+ ' /DDM_BASIS_TRANSCODER_UASTC'
+ ' /DBASISD_SUPPORT_KTX2=0'
+ ' /DMINIZ_NO_STDIO'
+ ' /DBASISU_SUPPORT_SSE=1'
.CompilerInputPath = 'engine/dlib/src/basis/transcoder'
.CompilerInputPathRecurse = true
.CompilerInputPattern = '*.cpp'
.CompilerOutputPath = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/basis_transcoder'
.LibrarianOutput = 'engine/dlib/build/$PlatformInfo$-$ArchInfo$-$Config$/basis_transcoder$StaticLibExtension$'
}
// lua
Library('$ProjectName$-lua-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/lua/src'
+ ' /Iengine/lua/src/lua'
+ ' /DLUA_ANSI'
+ ' /DLIB_LOG_DOMAIN=\"LUA\"'
.CompilerInputFiles = {
'engine/lua/src/lua/lapi.c'
'engine/lua/src/lua/lcode.c'
'engine/lua/src/lua/ldebug.c'
'engine/lua/src/lua/ldo.c'
'engine/lua/src/lua/ldump.c'
'engine/lua/src/lua/lfunc.c'
'engine/lua/src/lua/lgc.c'
'engine/lua/src/lua/llex.c'
'engine/lua/src/lua/lmem.c'
'engine/lua/src/lua/lobject.c'
'engine/lua/src/lua/lopcodes.c'
'engine/lua/src/lua/lparser.c'
'engine/lua/src/lua/lstate.c'
'engine/lua/src/lua/lstring.c'
'engine/lua/src/lua/ltable.c'
'engine/lua/src/lua/ltm.c'
'engine/lua/src/lua/lundump.c'
'engine/lua/src/lua/lvm.c'
'engine/lua/src/lua/lzio.c'
'engine/lua/src/lua/lauxlib.c'
'engine/lua/src/lua/lbaselib.c'
'engine/lua/src/lua/ldblib.c'
'engine/lua/src/lua/liolib.c'
'engine/lua/src/lua/lmathlib.c'
'engine/lua/src/lua/loslib.c'
'engine/lua/src/lua/ltablib.c'
'engine/lua/src/lua/lstrlib.c'
'engine/lua/src/lua/loadlib.c'
'engine/lua/src/lua/linit.c'
}
.CompilerOutputPath = 'engine/lua/build/$PlatformInfo$-$ArchInfo$-$Config$/lua'
.LibrarianOutput = 'engine/lua/build/$PlatformInfo$-$ArchInfo$-$Config$/lua$StaticLibExtension$'
}
// profilerext
Library('$ProjectName$-profilerext-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/profiler/src'
+ ' /DLIB_LOG_DOMAIN=\"PROFILER\"'
.CompilerInputFiles = {
'engine/profiler/src/profiler.cpp'
'engine/profiler/src/profiler_render.cpp'
'engine/profiler/src/basic/profiler_basic.cpp'
'engine/profiler/src/profiler_win32.cpp'
}
.CompilerOutputPath = 'engine/profiler/build/$PlatformInfo$-$ArchInfo$-$Config$/profilerext'
.LibrarianOutput = 'engine/profiler/build/$PlatformInfo$-$ArchInfo$-$Config$/libprofilerext$StaticLibExtension$'
}
// remotery
Library('$ProjectName$-profiler-remotery-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/profiler/src'
+ ' /DLIB_LOG_DOMAIN=\"PROFILER\"'
.CompilerInputFiles = {
'engine/profiler/src/remotery/profiler_remotery.cpp'
'engine/profiler/src/remotery/lib/Remotery.c'
}
.CompilerOutputPath = 'engine/profiler/build/$PlatformInfo$-$ArchInfo$-$Config$/profiler_remotery'
.LibrarianOutput = 'engine/profiler/build/$PlatformInfo$-$ArchInfo$-$Config$/libprofiler_remotery$StaticLibExtension$'
}
// engine_services
Library('$ProjectName$-engine-service-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/engine/src'
+ ' /Iengine/engine/build'
+ ' /DLIB_LOG_DOMAIN=\"ENGINE\"'
.CompilerInputFiles = {
'engine/engine/src/engine_service.cpp'
'engine/engine/src/engine_service_discovery.cpp'
'engine/engine/build/content/profiler.html.embed.cpp'
}
.CompilerOutputPath = 'engine/engine/build/$PlatformInfo$-$ArchInfo$-$Config$/engine_service'
.LibrarianOutput = 'engine/engine/build/$PlatformInfo$-$ArchInfo$-$Config$/libengine_service$StaticLibExtension$'
}
// engine
Library('$ProjectName$-engine-lib-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/engine/src'
+ ' /Iengine/engine/proto'
+ ' /Iengine/engine/build'
+ ' /DLIB_LOG_DOMAIN=\"ENGINE\"'
.CompilerInputFiles = {
'engine/engine/src/engine.cpp'
'engine/engine/src/engine_main.cpp'
'engine/engine/src/engine_loop.cpp'
'engine/engine/src/extension.cpp'
'engine/engine/src/script/script_engine.cpp'
'engine/engine/src/physics_debug_render.cpp'
'engine/engine/build/proto/engine/engine_ddf.cpp'
'engine/engine/build/content/materials/debug.spc.embed.cpp'
'engine/engine/build/content/builtins/connect/game.project.embed.cpp'
'engine/engine/build/content/builtins.arci.embed.cpp'
'engine/engine/build/content/builtins.arcd.embed.cpp'
'engine/engine/build/content/builtins.dmanifest.embed.cpp'
}
.CompilerOutputPath = 'engine/engine/build/$PlatformInfo$-$ArchInfo$-$Config$/engine'
.LibrarianOutput = 'engine/engine/build/$PlatformInfo$-$ArchInfo$-$Config$/libengine$StaticLibExtension$'
}
// gameobject
Library('$ProjectName$-gameobject-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/gameobject/src/gameobject'
+ ' /Iengine/gameobject/build/src'
+ ' /Iengine/gameobject/proto'
+ ' /Iengine/gameobject/build'
+ ' /DLIB_LOG_DOMAIN=\"GAMEOBJECT\"'
.CompilerInputFiles = {
'engine/gameobject/src/gameobject/comp_anim.cpp'
'engine/gameobject/src/gameobject/comp_script.cpp'
'engine/gameobject/src/gameobject/component.cpp'
'engine/gameobject/src/gameobject/gameobject.cpp'
'engine/gameobject/src/gameobject/gameobject_comp.cpp'
'engine/gameobject/src/gameobject/gameobject_profile.cpp'
'engine/gameobject/src/gameobject/gameobject_props.cpp'
'engine/gameobject/src/gameobject/gameobject_props_ddf.cpp'
'engine/gameobject/src/gameobject/gameobject_props_lua.cpp'
'engine/gameobject/src/gameobject/gameobject_script.cpp'
'engine/gameobject/src/gameobject/gameobject_script_util.cpp'
'engine/gameobject/src/gameobject/res_anim.cpp'
'engine/gameobject/src/gameobject/res_collection.cpp'
'engine/gameobject/src/gameobject/res_gameobject.cpp'
'engine/gameobject/src/gameobject/res_lua.cpp'
'engine/gameobject/src/gameobject/res_script.cpp'
'engine/gameobject/build/proto/gameobject/gameobject_ddf.cpp'
'engine/gameobject/build/proto/gameobject/lua_ddf.cpp'
'engine/gameobject/build/proto/gameobject/properties_ddf.cpp'
}
.CompilerOutputPath = 'engine/gameobject/build/$PlatformInfo$-$ArchInfo$-$Config$/gameobject'
.LibrarianOutput = 'engine/gameobject/build/$PlatformInfo$-$ArchInfo$-$Config$/libgameobject$StaticLibExtension$'
}
// resource
Library('$ProjectName$-resource-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/resource/src'
+ ' /Iengine/resource/proto'
+ ' /Iengine/resource/build'
+ ' /DLIB_LOG_DOMAIN=\"RESOURCE\"'
.CompilerInputFiles = {
'engine/resource/src/block_allocator.cpp'
'engine/resource/src/resource.cpp'
'engine/resource/src/resource_archive.cpp'
'engine/resource/src/resource_chunk_cache.cpp'
'engine/resource/src/resource_desc.cpp'
'engine/resource/src/resource_manifest.cpp'
'engine/resource/src/resource_mounts.cpp'
'engine/resource/src/resource_preloader.cpp'
'engine/resource/src/resource_streamer.cpp'
'engine/resource/src/resource_type.cpp'
'engine/resource/src/resource_util.cpp'
'engine/resource/src/resource_verify.cpp'
'engine/resource/src/providers/provider.cpp'
'engine/resource/src/providers/provider_archive.cpp'
'engine/resource/src/providers/provider_archive_private.cpp'
'engine/resource/src/providers/provider_file.cpp'
'engine/resource/src/providers/provider_http.cpp'
'engine/resource/src/providers/provider_zip.cpp'
'engine/resource/src/async/load_queue.cpp'
'engine/resource/src/async/load_queue_threaded.cpp'
'engine/resource/src/mount/mount_generic.cpp'
'engine/resource/build/proto/resource/liveupdate_ddf.cpp'
'engine/resource/build/proto/resource/resource_ddf.cpp'
}
.CompilerOutputPath = 'engine/resource/build/$PlatformInfo$-$ArchInfo$-$Config$/resource'
.LibrarianOutput = 'engine/resource/build/$PlatformInfo$-$ArchInfo$-$Config$/libresource$StaticLibExtension$'
}
// graphics
Library('$ProjectName$-graphics-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/graphics/src'
+ ' /Iengine/graphics/src/opengl'
+ ' /Iengine/graphics/src/opengl/win32'
+ ' /Iengine/graphics/proto'
+ ' /Iengine/graphics/build/proto'
+ ' /DDM_GRAPHICS_USE_OPENGL'
+ ' /DDM_HAVE_PLATFORM_COMPUTE_SUPPORT'
+ ' /DLIB_LOG_DOMAIN=\"GRAPHICS\"'
.CompilerInputFiles = {
'engine/graphics/src/graphics.cpp'
'engine/graphics/src/graphics_glfw_wrappers.cpp'
'engine/graphics/src/graphics_proto.cpp'
'engine/graphics/src/graphics_vertices.cpp'
'engine/graphics/src/opengl/graphics_opengl.cpp'
'engine/graphics/build/proto/graphics/graphics_ddf.cpp'
}
.CompilerOutputPath = 'engine/graphics/build/$PlatformInfo$-$ArchInfo$-$Config$/graphics'
.LibrarianOutput = 'engine/graphics/build/$PlatformInfo$-$ArchInfo$-$Config$/libgraphics$StaticLibExtension$'
}
// graphics_transcoder_basisu
Library('$ProjectName$-graphics-transcoder-basisu-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/graphics/src'
+ ' /DLIB_LOG_DOMAIN=\"GRAPHICS\"'
.CompilerInputFiles = {
'engine/graphics/src/transcoder/graphics_transcoder_basisu.cpp'
}
.CompilerOutputPath = 'engine/graphics/build/$PlatformInfo$-$ArchInfo$-$Config$/graphics_transcoder_basisu'
.LibrarianOutput = 'engine/graphics/build/$PlatformInfo$-$ArchInfo$-$Config$/libgraphics_transcoder_basisu$StaticLibExtension$'
}
// physics
Library('$ProjectName$-physics-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/physics/src'
+ ' /Iengine/physics/src/physics'
+ ' /Itmp/dynamo_home/ext/include/box2d_defold'
+ ' /DLIB_LOG_DOMAIN=\"PHYSICS\"'
.CompilerInputFiles = {
'engine/physics/src/physics/physics.cpp'
'engine/physics/src/physics/physics_common.cpp'
'engine/physics/src/physics/physics_3d.cpp'
'engine/physics/src/physics/debug_draw_3d.cpp'
'engine/physics/src/physics/box2d/box2d_debug_draw.cpp'
'engine/physics/src/physics/box2d/box2d_physics.cpp'
}
.CompilerOutputPath = 'engine/physics/build/$PlatformInfo$-$ArchInfo$-$Config$/physics'
.LibrarianOutput = 'engine/physics/build/$PlatformInfo$-$ArchInfo$-$Config$/libphysics$StaticLibExtension$'
}
// render
Library('$ProjectName$-render-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/render/src'
+ ' /Iengine/render/proto'
+ ' /Iengine/render/build/proto'
+ ' /DLIB_LOG_DOMAIN=\"RENDER\"'
.CompilerInputFiles = {
'engine/render/src/render/buffer.cpp'
'engine/render/src/render/camera.cpp'
'engine/render/src/render/compute.cpp'
'engine/render/src/render/constant.cpp'
'engine/render/src/render/debug_renderer.cpp'
'engine/render/src/render/display_profiles.cpp'
'engine/render/src/render/light.cpp'
'engine/render/src/render/material.cpp'
'engine/render/src/render/program_utils.cpp'
'engine/render/src/render/render.cpp'
'engine/render/src/render/render_command.cpp'
'engine/render/src/render/render_script.cpp'
'engine/render/src/render/render_script_camera.cpp'
'engine/render/src/render/font/font_glyphbank.cpp'
'engine/render/src/render/font/font_renderer.cpp'
'engine/render/src/render/font/fontmap.cpp'
'engine/render/src/platform/renderer_common.cpp'
'engine/render/build/proto/render/compute_ddf.cpp'
'engine/render/build/proto/render/font_ddf.cpp'
'engine/render/build/proto/render/material_ddf.cpp'
'engine/render/build/proto/render/render_ddf.cpp'
'engine/render/build/proto/render/render_target_ddf.cpp'
}
.CompilerOutputPath = 'engine/render/build/$PlatformInfo$-$ArchInfo$-$Config$/render'
.LibrarianOutput = 'engine/render/build/$PlatformInfo$-$ArchInfo$-$Config$/librender$StaticLibExtension$'
}
// render_font_default
Library('$ProjectName$-render-font-default-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/render/src'
+ ' /DLIB_LOG_DOMAIN=\"RENDER\"'
.CompilerInputFiles = {
'engine/render/src/render/font/default/font_default_vertex.cpp'
}
.CompilerOutputPath = 'engine/render/build/$PlatformInfo$-$ArchInfo$-$Config$/render_font_default'
.LibrarianOutput = 'engine/render/build/$PlatformInfo$-$ArchInfo$-$Config$/librender_font_default$StaticLibExtension$'
}
// script
Library('$ProjectName$-script-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/script/src'
+ ' /Iengine/script/src/script'
+ ' /Iengine/script/build/src'
+ ' /Iengine/script/build/src/script'
+ ' /DLUASOCKET_API='
+ ' /DLIB_LOG_DOMAIN=\"SCRIPT\"'
.CompilerInputFiles = {
'engine/script/src/http_service.cpp'
'engine/script/src/script.cpp'
'engine/script/src/script_bitop.cpp'
'engine/script/src/script_ddf.cpp'
'engine/script/src/script_graphics.cpp'
'engine/script/src/script_hash.cpp'
'engine/script/src/script_html5.cpp'
'engine/script/src/script_json.cpp'
'engine/script/src/script_luasocket.cpp'
'engine/script/src/script_module.cpp'
'engine/script/src/script_msg.cpp'
'engine/script/src/script_sys.cpp'
'engine/script/src/script_table.cpp'
'engine/script/src/script_timer.cpp'
'engine/script/src/script_types.cpp'
'engine/script/src/script_vmath.cpp'
'engine/script/src/script_zlib.cpp'
'engine/script/src/bitop/bitop.c'
'engine/script/src/luasocket/auxiliar.c'
'engine/script/src/luasocket/buffer.c'
'engine/script/src/luasocket/except.c'
'engine/script/src/luasocket/inet.c'
'engine/script/src/luasocket/io.c'
'engine/script/src/luasocket/luasocket.c'
'engine/script/src/luasocket/options.c'
'engine/script/src/luasocket/select.c'
'engine/script/src/luasocket/tcp.c'
'engine/script/src/luasocket/timeout.c'
'engine/script/src/luasocket/udp.c'
'engine/script/src/luasocket/wsocket.c'
'engine/script/src/luacjson/fpconv.c'
'engine/script/src/luacjson/lua_cjson.c'
'engine/script/src/luacjson/strbuf.c'
'engine/script/build/src/script/ddf_script.cpp'
'engine/script/build/src/script/http_ddf.cpp'
'engine/script/build/src/script/lua_source_ddf.cpp'
'engine/script/build/src/script/script_doc_ddf.cpp'
'engine/script/build/src/script/sys_ddf.cpp'
}
.CompilerOutputPath = 'engine/script/build/$PlatformInfo$-$ArchInfo$-$Config$/script'
.LibrarianOutput = 'engine/script/build/$PlatformInfo$-$ArchInfo$-$Config$/libscript$StaticLibExtension$'
}
// decoder_wav
Library('$ProjectName$-decoder-wav-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/sound/src'
+ ' /DLIB_LOG_DOMAIN=\"SOUND\"'
.CompilerInputFiles = {
'engine/sound/src/decoders/decoder_wav.cpp'
}
.CompilerOutputPath = 'engine/sound/build/$PlatformInfo$-$ArchInfo$-$Config$/decoder_wav'
.LibrarianOutput = 'engine/sound/build/$PlatformInfo$-$ArchInfo$-$Config$/libdecoder_wav$StaticLibExtension$'
}
// decoder_ogg
Library('$ProjectName$-decoder-ogg-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/sound/src'
+ ' /DDM_SOUND_DSP_IMPL=SSE'
+ ' /arch:SSE4.2'
+ ' /DLIB_LOG_DOMAIN=\"SOUND\"'
.CompilerInputFiles = {
'engine/sound/src/decoders/decoder_stb_vorbis.cpp'
'engine/sound/src/decoders/decoder_tremolo.cpp'
'engine/sound/src/stb_vorbis/stb_vorbis.c'
}
.CompilerOutputPath = 'engine/sound/build/$PlatformInfo$-$ArchInfo$-$Config$/decoder_ogg'
.LibrarianOutput = 'engine/sound/build/$PlatformInfo$-$ArchInfo$-$Config$/libdecoder_ogg$StaticLibExtension$'
}
// sound
Library('$ProjectName$-sound-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/sound/src'
+ ' /D_XBOX'
+ ' /DDM_SOUND_DSP_IMPL=SSE'
+ ' /arch:SSE4.2'
+ ' /DLIB_LOG_DOMAIN=\"SOUND\"'
.CompilerInputFiles = {
'engine/sound/src/sound_codec.cpp'
'engine/sound/src/sound_decoder.cpp'
'engine/sound/src/sound_generic.cpp'
'engine/sound/src/sound.cpp'
'engine/sound/src/devices/device_wasapi.cpp'
}
.CompilerOutputPath = 'engine/sound/build/$PlatformInfo$-$ArchInfo$-$Config$/sound'
.LibrarianOutput = 'engine/sound/build/$PlatformInfo$-$ArchInfo$-$Config$/libsound$StaticLibExtension$'
}
// gamesys
Library('$ProjectName$-gamesys-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/gamesys/src/gamesys'
+ ' /Iengine/gamesys/src'
+ ' /Iengine/gamesys/proto'
+ ' /Iengine/gamesys/build'
+ ' /Itmp/dynamo_home/ext/include/box2d_defold'
+ ' /DDM_HAVE_PLATFORM_COMPUTE_SUPPORT'
+ ' /DLIB_LOG_DOMAIN=\"GAMESYS\"'
.CompilerInputFiles = {
'engine/gamesys/src/gamesys/gamesys.cpp'
'engine/gamesys/src/gamesys/gamesys_private.cpp'
'engine/gamesys/src/gamesys/gamesys_resource.cpp'
'engine/gamesys/src/gamesys/gamesys_script.cpp'
'engine/gamesys/src/gamesys/components/bullet3d/comp_collision_object_bullet3d.cpp'
'engine/gamesys/src/gamesys/components/box2d/comp_collision_object_box2d.cpp'
'engine/gamesys/src/gamesys/components/comp_camera.cpp'
'engine/gamesys/src/gamesys/components/comp_collection_factory.cpp'
'engine/gamesys/src/gamesys/components/comp_collection_proxy.cpp'
'engine/gamesys/src/gamesys/components/comp_collision_object.cpp'
'engine/gamesys/src/gamesys/components/comp_factory.cpp'
'engine/gamesys/src/gamesys/components/comp_gui.cpp'
'engine/gamesys/src/gamesys/components/comp_label.cpp'
'engine/gamesys/src/gamesys/components/comp_light.cpp'
'engine/gamesys/src/gamesys/components/comp_mesh.cpp'
'engine/gamesys/src/gamesys/components/comp_particlefx.cpp'
'engine/gamesys/src/gamesys/components/comp_private.cpp'
'engine/gamesys/src/gamesys/components/comp_sound.cpp'
'engine/gamesys/src/gamesys/components/comp_sprite.cpp'
'engine/gamesys/src/gamesys/components/comp_tilegrid.cpp'
'engine/gamesys/src/gamesys/fontgen/fontgen.cpp'
'engine/gamesys/src/gamesys/resources/box2d/res_collision_object_box2d.cpp'
'engine/gamesys/src/gamesys/resources/box2d/res_convex_shape_box2d.cpp'
'engine/gamesys/src/gamesys/resources/bullet3d/res_collision_object_bullet3d.cpp'
'engine/gamesys/src/gamesys/resources/bullet3d/res_convex_shape_bullet3d.cpp'
'engine/gamesys/src/gamesys/resources/res_animationset.cpp'
'engine/gamesys/src/gamesys/resources/res_buffer.cpp'
'engine/gamesys/src/gamesys/resources/res_camera.cpp'
'engine/gamesys/src/gamesys/resources/res_collection_factory.cpp'
'engine/gamesys/src/gamesys/resources/res_collection_proxy.cpp'
'engine/gamesys/src/gamesys/resources/res_collision_object.cpp'
'engine/gamesys/src/gamesys/resources/res_compute.cpp'
'engine/gamesys/src/gamesys/resources/res_convex_shape.cpp'
'engine/gamesys/src/gamesys/resources/res_data.cpp'
'engine/gamesys/src/gamesys/resources/res_display_profiles.cpp'
'engine/gamesys/src/gamesys/resources/res_factory.cpp'
'engine/gamesys/src/gamesys/resources/res_font.cpp'
'engine/gamesys/src/gamesys/resources/res_gamepad_map.cpp'
'engine/gamesys/src/gamesys/resources/res_glyph_bank.cpp'
'engine/gamesys/src/gamesys/resources/res_gui.cpp'
'engine/gamesys/src/gamesys/resources/res_gui_script.cpp'
'engine/gamesys/src/gamesys/resources/res_input_binding.cpp'
'engine/gamesys/src/gamesys/resources/res_label.cpp'
'engine/gamesys/src/gamesys/resources/res_light.cpp'
'engine/gamesys/src/gamesys/resources/res_material.cpp'
'engine/gamesys/src/gamesys/resources/res_mesh.cpp'
'engine/gamesys/src/gamesys/resources/res_meshset.cpp'
'engine/gamesys/src/gamesys/resources/res_particlefx.cpp'
'engine/gamesys/src/gamesys/resources/res_render_prototype.cpp'
'engine/gamesys/src/gamesys/resources/res_render_script.cpp'
'engine/gamesys/src/gamesys/resources/res_render_target.cpp'
'engine/gamesys/src/gamesys/resources/res_shader_program.cpp'
'engine/gamesys/src/gamesys/resources/res_skeleton.cpp'
'engine/gamesys/src/gamesys/resources/res_sound.cpp'
'engine/gamesys/src/gamesys/resources/res_sound_data.cpp'
'engine/gamesys/src/gamesys/resources/res_sprite.cpp'
'engine/gamesys/src/gamesys/resources/res_texture.cpp'
'engine/gamesys/src/gamesys/resources/res_textureset.cpp'
'engine/gamesys/src/gamesys/resources/res_tilegrid.cpp'
'engine/gamesys/src/gamesys/resources/res_ttf.cpp'
'engine/gamesys/src/gamesys/scripts/script_buffer.cpp'
'engine/gamesys/src/gamesys/scripts/script_collection_factory.cpp'
'engine/gamesys/src/gamesys/scripts/script_collectionproxy.cpp'
'engine/gamesys/src/gamesys/scripts/script_compute.cpp'
'engine/gamesys/src/gamesys/scripts/script_factory.cpp'
'engine/gamesys/src/gamesys/scripts/script_font.cpp'
'engine/gamesys/src/gamesys/scripts/script_http.cpp'
'engine/gamesys/src/gamesys/scripts/script_image.cpp'
'engine/gamesys/src/gamesys/scripts/script_label.cpp'
'engine/gamesys/src/gamesys/scripts/script_material.cpp'
'engine/gamesys/src/gamesys/scripts/script_particlefx.cpp'
'engine/gamesys/src/gamesys/scripts/script_physics.cpp'
'engine/gamesys/src/gamesys/scripts/script_resource.cpp'
'engine/gamesys/src/gamesys/scripts/script_sound.cpp'
'engine/gamesys/src/gamesys/scripts/script_sprite.cpp'
'engine/gamesys/src/gamesys/scripts/script_sys_gamesys.cpp'
'engine/gamesys/src/gamesys/scripts/script_tilemap.cpp'
'engine/gamesys/src/gamesys/scripts/script_window.cpp'
'engine/gamesys/src/gamesys/scripts/window/script_window_null.cpp'
'engine/gamesys/build/gamesys/atlas_ddf.cpp'
'engine/gamesys/build/gamesys/buffer_ddf.cpp'
'engine/gamesys/build/gamesys/camera_ddf.cpp'
'engine/gamesys/build/gamesys/data_ddf.cpp'
'engine/gamesys/build/gamesys/gamesys_ddf.cpp'
'engine/gamesys/build/gamesys/gui_ddf.cpp'
'engine/gamesys/build/gamesys/label_ddf.cpp'
'engine/gamesys/build/gamesys/mesh_ddf.cpp'
'engine/gamesys/build/gamesys/physics_ddf.cpp'
'engine/gamesys/build/gamesys/sound_ddf.cpp'
'engine/gamesys/build/gamesys/sprite_ddf.cpp'
'engine/gamesys/build/gamesys/texture_set_ddf.cpp'
'engine/gamesys/build/gamesys/tile_ddf.cpp'
}
.CompilerOutputPath = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/gamesys'
.LibrarianOutput = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/libgamesys$StaticLibExtension$'
}
// gamesys_model
Library('$ProjectName$-gamesys-model-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/gamesys/src/gamesys'
+ ' /Iengine/gamesys/src'
+ ' /Iengine/gamesys/proto'
+ ' /Iengine/gamesys/build'
+ ' /DLIB_LOG_DOMAIN=\"GAMESYS\"'
.CompilerInputFiles = {
'engine/gamesys/src/gamesys/resources/res_model.cpp'
'engine/gamesys/src/gamesys/components/comp_model.cpp'
'engine/gamesys/src/gamesys/scripts/script_model.cpp'
'engine/gamesys/build/gamesys/model_ddf.cpp'
}
.CompilerOutputPath = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/gamesys_model'
.LibrarianOutput = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/libgamesys_model$StaticLibExtension$'
}
// gamesys_rig
Library('$ProjectName$-gamesys-rig-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/gamesys/src/gamesys'
+ ' /Iengine/gamesys/src'
+ ' /Iengine/gamesys/proto'
+ ' /DLIB_LOG_DOMAIN=\"GAMESYS\"'
.CompilerInputFiles = {
'engine/gamesys/src/gamesys/resources/res_rig_scene.cpp'
}
.CompilerOutputPath = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/gamesys_rig'
.LibrarianOutput = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/libgamesys_rig$StaticLibExtension$'
}
// script_box2d_defold
Library('$ProjectName$-script-box2d-defold-$PlatformInfo$-$ArchInfo$-$Config$')
{
.CompilerOptions + ' /Iengine/gamesys/src/gamesys'
+ ' /Iengine/gamesys/src'
+ ' /Itmp/dynamo_home/ext/include/box2d_defold'
+ ' /DLIB_LOG_DOMAIN=\"GAMESYS\"'
.CompilerInputFiles = {
'engine/gamesys/src/gamesys/scripts/box2d/script_box2d.cpp'
'engine/gamesys/src/gamesys/scripts/box2d/v2/script_box2d_body_v2.cpp'
'engine/gamesys/src/gamesys/scripts/box2d/v2/script_box2d_fixture_v2.cpp'
'engine/gamesys/src/gamesys/scripts/box2d/v2/script_box2d_joint_v2.cpp'
'engine/gamesys/src/gamesys/scripts/box2d/v2/script_box2d_shape_v2.cpp'
'engine/gamesys/src/gamesys/scripts/box2d/v2/script_box2d_world_v2.cpp'
}
.CompilerOutputPath = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/script_box2d_defold'
.LibrarianOutput = 'engine/gamesys/build/$PlatformInfo$-$ArchInfo$-$Config$/libscript_box2d_defold$StaticLibExtension$'
}
// dmengine executable objects
ObjectList('$ProjectName$-dmengine-objects-$PlatformInfo$-$ArchInfo$-$Config$') {
.CompilerOptions + ' /Iengine/engine/src'
+ ' /Iengine/engine/build'
+ ' /Iengine/engine/proto'
+ ' /DLIB_LOG_DOMAIN=\"ENGINE\"'
+ ' /D_XBOX'
+ ' /std:c++20'
.CompilerInputFiles = {
'engine/engine/src/common/main.cpp'
'engine/engine/build/src/__exported_symbols_7.cpp'
}
.CompilerOutputPath = 'engine/engine/build/$PlatformInfo$-$ArchInfo$-$Config$/dmengine'
}
// dmengine.exe
Executable('$ProjectName$-dmengine-$PlatformInfo$-$ArchInfo$-$Config$') {
.Libraries = {
'$ProjectName$-dmengine-objects-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-crash-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-ddf-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-extension-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-font-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-gui-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-liveupdate-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-record-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-particle-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-rig-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-platform-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-hid-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-input-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-dlib-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-mbedtls-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-zip-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-image-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-profile-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-basis-transcoder-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-lua-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-profilerext-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-profiler-remotery-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-engine-service-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-engine-lib-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-gameobject-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-resource-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-graphics-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-graphics-transcoder-basisu-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-physics-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-render-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-render-font-default-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-script-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-decoder-wav-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-decoder-ogg-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-sound-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-gamesys-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-gamesys-model-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-gamesys-rig-$PlatformInfo$-$ArchInfo$-$Config$'
'$ProjectName$-script-box2d-defold-$PlatformInfo$-$ArchInfo$-$Config$'
}
.LinkerOptions + ' opengl32.lib'
+ ' user32.lib'
+ ' shell32.lib'
+ ' xinput9_1_0.lib'
+ ' dbghelp.lib'
+ ' dinput8.lib'
+ ' dxguid.lib'
+ ' Psapi.lib'
+ ' WS2_32.LIB'
+ ' Iphlpapi.LIB'
+ ' AdvAPI32.Lib'
+ ' Bcrypt.lib'
+ ' Gdi32.lib'
+ ' hid.lib'
+ ' glu32.lib'
+ ' ole32.lib'
+ ' engine/engine/build/src/engine.res'
+ ' /LIBPATH:tmp/dynamo_home/ext/lib/x86_64-win32'
+ ' /LIBPATH:tmp/dynamo_home/lib/x86_64-win32'
+ ' libBulletDynamics.lib'
+ ' libBulletCollision.lib'
+ ' libbox2d.lib'
+ ' libbox2d_defold.lib'
+ ' libLinearMath.lib'
+ ' libglfw3.lib'
+ ' vpx.lib'
+ ' /ENTRY:mainCRTStartup'
.LinkerOutput = 'engine/engine/build/src/$ProjectName$$ConfigSuffix$$ExecutableExtension$'
}
Alias('$ProjectName$-$PlatformInfo$-$ArchInfo$-$Config$') {
.Targets = {
'$ProjectName$-dmengine-$PlatformInfo$-$ArchInfo$-$Config$'
}
}
}
ForEach(.Config in .Configs) {
Using(.Config)
Alias('All-$PlatformInfo$-$ArchInfo$-$Config$') {
.Targets = {
'$ProjectName$-$PlatformInfo$-$ArchInfo$-$Config$',
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment