
#project packages

set(JASPER_BUILD_PLAYER ON CACHE BOOL "Build Player")
set(JASPER_BUILD_STUDIO ON CACHE BOOL "Build Studio")

if(BUILDCORE_TARGET STREQUAL "gba")
	set(JASPER_BUILD_STUDIO OFF)
endif()

if(APPLE)
	set(JASPER_DIST_BIN              JasperStudio.app/Contents/MacOS)
	set(JASPER_DIST_LIB              JasperStudio.app/Contents/Library)
	set(JASPER_DIST_MODULE           JasperStudio.app/Contents/Plugins)
	set(JASPER_DIST_RESOURCES        JasperStudio.app/Contents/Resources)
	set(JASPER_DIST_MAC_APP_CONTENTS JasperStudio.app/Contents)
else()
	set(JASPER_DIST_BIN       bin)
	set(JASPER_DIST_LIB       lib)
	set(JASPER_DIST_MODULE    lib)
	set(JASPER_DIST_RESOURCES share)
endif()

add_subdirectory(modules)
add_subdirectory(player)
if(NOT BUILDCORE_TARGET STREQUAL "gba")
	add_subdirectory(tools)
endif()
