ION_SIMULATOR_FILES = 1

ion_src += $(addprefix ion/src/simulator/windows/, \
  platform_files.cpp \
  platform_images.cpp \
  platform_language.cpp \
  resources.rc \
)

ion_src += $(addprefix ion/src/simulator/shared/, \
  dummy/haptics_enabled.cpp \
  dummy/keyboard_callback.cpp \
  dummy/window_callback.cpp \
  actions.cpp \
  clipboard_helper.cpp \
  haptics.cpp \
  journal.cpp \
  state_file.cpp \
  store_script.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

# RC file dependencies
$(call object_for,ion/src/simulator/windows/resources.rc): WRFLAGS += -I $(BUILD_DIR)

# Linker flags
LDFLAGS += -lgdiplus -lcomdlg32

$(eval $(call rule_for, \
  RESGEN, \
  ion/src/simulator/windows/resources_gen.rc ion/src/simulator/windows/images.h, \
  $(ion_simulator_assets_paths), \
  $$(PYTHON) ion/src/simulator/windows/resgen.py $(ion_simulator_assets) -o $$@, \
  global \
))

$(call object_for,ion/src/simulator/windows/platform_images.cpp): $(BUILD_DIR)/ion/src/simulator/windows/images.h
$(call object_for,ion/src/simulator/windows/resources.rc): $(BUILD_DIR)/ion/src/simulator/windows/resources_gen.rc
