<gh_stars>0
{
  "variables": {
    "lse_enable_plugin_platform_sdl%": "1",
    "lse_enable_plugin_audio_sdl_audio%": "1",
    "lse_enable_plugin_audio_sdl_mixer%": "1",
    "lse_sdl_include%": "third-party/SDL/include",
    "lse_sdl_mixer_include%": "third-party/SDL_mixer/include",
    # note: enable_native_tests variable is set in set-enable-native-tests.gypi
    "lse_enable_native_tests%": "0",
  },
  "target_defaults": {
    "conditions": [
      [ "lse_enable_plugin_platform_sdl==1", { "defines": [ "LSE_ENABLE_PLUGIN_PLATFORM_SDL" ] } ],
      [ "lse_enable_plugin_audio_sdl_audio==1", { "defines": [ "LSE_ENABLE_PLUGIN_AUDIO_SDL_AUDIO" ] } ],
      [ "lse_enable_plugin_audio_sdl_mixer==1", { "defines": [ "LSE_ENABLE_PLUGIN_AUDIO_SDL_MIXER" ] } ],
    ],
    "configurations": {
      "Release": {
        "defines": [
          "NDEBUG"
        ]
      }
    }
  },
  "includes": [
    # move setting enable_native_tests variable to another file so tests can be disabled in npm package builds
    "addon/set-enable-native-tests.gypi",

    # third party static libraries
    "third-party/nanosvg/build.gypi",
    "third-party/stb/build.gypi",
    "third-party/freetype/build.gypi",
    "third-party/base64/build.gypi",
    "third-party/yoga/build.gypi",

    # static libraries
    "addon/lse-lib-napi-ext/build.gypi",
    "addon/lse-lib-habitat/build.gypi",
    "addon/lse-lib-audio/build.gypi",
    "addon/lse-lib-platform/build.gypi",
    "addon/lse-lib-util/build.gypi",
    "addon/lse-lib-logger/build.gypi",
    "addon/lse-lib-font/build.gypi",
    "addon/lse-plugin-ref/build.gypi",
    "addon/lse-plugin-sdl/build.gypi",
    "addon/lse-plugin-sdl-audio/build.gypi",
    "addon/lse-plugin-sdl-mixer/build.gypi",

    # node modules
    "addon/lse-core/build.gypi"
  ]
}

{
  "variables": {
    "lse_enable_plugin_platform_sdl%": "1",
    "lse_enable_plugin_audio_sdl_audio%": "1",
    "lse_enable_plugin_audio_sdl_mixer%": "1",
    "lse_sdl_include%": "third-party/SDL/include",
    "lse_sdl_mixer_include%": "third-party/SDL_mixer/include",
    # note: enable_native_tests variable is set in set-enable-native-tests.gypi
    "lse_enable_native_tests%": "0",
  },
  "target_defaults": {
    "conditions": [
      [ "lse_enable_plugin_platform_sdl==1", { "defines": [ "LSE_ENABLE_PLUGIN_PLATFORM_SDL" ] } ],
      [ "lse_enable_plugin_audio_sdl_audio==1", { "defines": [ "LSE_ENABLE_PLUGIN_AUDIO_SDL_AUDIO" ] } ],
      [ "lse_enable_plugin_audio_sdl_mixer==1", { "defines": [ "LSE_ENABLE_PLUGIN_AUDIO_SDL_MIXER" ] } ],
    ],
    "configurations": {
      "Release": {
        "defines": [
          "NDEBUG"
        ]
      }
    }
  },
  "includes": [
    # move setting enable_native_tests variable to another file so tests can be disabled in npm package builds
    "addon/set-enable-native-tests.gypi",

    # third party static libraries
    "third-party/nanosvg/build.gypi",
    "third-party/stb/build.gypi",
    "third-party/freetype/build.gypi",
    "third-party/base64/build.gypi",
    "third-party/yoga/build.gypi",

    # static libraries
    "addon/lse-lib-napi-ext/build.gypi",
    "addon/lse-lib-habitat/build.gypi",
    "addon/lse-lib-audio/build.gypi",
    "addon/lse-lib-platform/build.gypi",
    "addon/lse-lib-util/build.gypi",
    "addon/lse-lib-logger/build.gypi",
    "addon/lse-lib-font/build.gypi",
    "addon/lse-plugin-ref/build.gypi",
    "addon/lse-plugin-sdl/build.gypi",
    "addon/lse-plugin-sdl-audio/build.gypi",
    "addon/lse-plugin-sdl-mixer/build.gypi",

    # node modules
    "addon/lse-core/build.gypi"
  ]
}
# note: enable_native_tests variable is set in set-enable-native-tests.gypi # move setting enable_native_tests variable to another file so tests can be disabled in npm package builds # third party static libraries # static libraries # node modules