mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Wrote methods for accessing the system clipboard from the web simulator, as the methods in SDL_Clipboard do not work when the video device uses emscripten. Change-Id: Ib2e66530a6b013eca0cf69fb52372e9e3a21c8bb
46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
# The following lines allow us to use our own SDL_config.h
|
|
|
|
# First, make sure an error is raised if we ever use the standard SDL_config.h
|
|
SFLAGS += -DUSING_GENERATED_CONFIG_H
|
|
# Then use our very own include dir if either SDL.h or SDL_config.h are included
|
|
# Note that this one will appear before ion/src/simulator/external/sdl/include
|
|
# which is added later on in the SDL Makefile
|
|
SFLAGS += -Iion/src/simulator/web/include
|
|
|
|
# Only render the screen, not the whole calculator which will be drawn in HTML
|
|
SFLAGS += -DEPSILON_SDL_SCREEN_ONLY=1
|
|
|
|
# Enable to set environment variables for a module
|
|
LDFLAGS += --pre-js ion/src/simulator/web/preamble_env.js
|
|
|
|
ion_src += $(addprefix ion/src/simulator/web/, \
|
|
callback.cpp \
|
|
clipboard.cpp \
|
|
helpers.cpp \
|
|
)
|
|
|
|
ion_src += $(addprefix ion/src/simulator/shared/, \
|
|
dummy/language.cpp \
|
|
dummy/haptics_enabled.cpp \
|
|
haptics.cpp \
|
|
)
|
|
|
|
ion_src += ion/src/shared/collect_registers.cpp
|
|
|
|
ifeq ($(EPSILON_TELEMETRY),1)
|
|
ion_src += ion/src/simulator/shared/dummy/telemetry_init.cpp
|
|
ion_src += ion/src/shared/telemetry_console.cpp
|
|
endif
|
|
|
|
DEFAULT = epsilon.zip
|
|
|
|
$(BUILD_DIR)/epsilon%zip: $(BUILD_DIR)/epsilon%js $(BUILD_DIR)/ion/src/simulator/web/simulator.html
|
|
@rm -rf $(basename $@)
|
|
@mkdir -p $(basename $@)
|
|
@cp $< $(basename $@)/epsilon.js
|
|
@cp ion/src/simulator/assets/background.jpg $(basename $@)/
|
|
@cp $(BUILD_DIR)/ion/src/simulator/web/simulator.html $(basename $@)/
|
|
$(call rule_label,ZIP)
|
|
@zip -r -9 -j $@ $(basename $@) > /dev/null
|
|
@rm -rf $(basename $@)
|