
Import('component_env', 'env')

component_env.Append(
  CPPPATH = [
    "#/vendor/SDL_image/include/SDL/",
  ],

  CFLAGS = [
    # Ignore all warnings in this upstream code.
    "-w"
  ]
)

libsdl_image_files = [
  "src/IMG_xpm.c",
]

component_env.StaticLibrary('libSDL_image', libsdl_image_files)
component_env.Install('$LIBRARY_DIR', 'libSDL_image.a')

env.AddStaticLibraryTo("SDL_image", "SDL")
