simbltweak.mk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ifeq ($(_THEOS_RULES_LOADED),)
  2. include $(THEOS_MAKE_PATH)/rules.mk
  3. endif
  4. .PHONY: internal-simbltweak-all_ internal-simbltweak-stage_ internal-simbltweak-compile
  5. _THEOS_INTERNAL_LDFLAGS += -dynamiclib
  6. # Bundle Setup
  7. LOCAL_INSTALL_PATH ?= $(strip $($(THEOS_CURRENT_INSTANCE)_INSTALL_PATH))
  8. ifeq ($(LOCAL_INSTALL_PATH),)
  9. LOCAL_INSTALL_PATH = /Library/Application Support/SIMBL/Plugins
  10. endif
  11. ifeq ($($(THEOS_CURRENT_INSTANCE)_BUNDLE_NAME),)
  12. LOCAL_BUNDLE_NAME = $(THEOS_CURRENT_INSTANCE)
  13. else
  14. LOCAL_BUNDLE_NAME = $($(THEOS_CURRENT_INSTANCE)_BUNDLE_NAME)
  15. endif
  16. _LOCAL_BUNDLE_FULL_NAME = $(LOCAL_BUNDLE_NAME).bundle
  17. _THEOS_SHARED_BUNDLE_BUILD_PATH = $(THEOS_OBJ_DIR)/$(_LOCAL_BUNDLE_FULL_NAME)
  18. _THEOS_SHARED_BUNDLE_STAGE_PATH = $(THEOS_STAGING_DIR)$(LOCAL_INSTALL_PATH)/$(_LOCAL_BUNDLE_FULL_NAME)
  19. _LOCAL_INSTANCE_TARGET := $(_LOCAL_BUNDLE_FULL_NAME)$(_THEOS_TARGET_BUNDLE_BINARY_SUBDIRECTORY)/$(THEOS_CURRENT_INSTANCE)$(TARGET_EXE_EXT)
  20. include $(THEOS_MAKE_PATH)/instance/shared/bundle.mk
  21. # End Bundle Setup
  22. _THEOS_INTERNAL_LOGOSFLAGS += -c generator=internal
  23. ifeq ($(_THEOS_MAKE_PARALLEL_BUILDING), no)
  24. internal-simbltweak-all_:: $(_OBJ_DIR_STAMPS) shared-instance-bundle-all $(THEOS_OBJ_DIR)/$(_LOCAL_INSTANCE_TARGET)
  25. else
  26. internal-simbltweak-all_:: $(_OBJ_DIR_STAMPS) shared-instance-bundle-all
  27. $(ECHO_NOTHING)$(MAKE) -f $(_THEOS_PROJECT_MAKEFILE_NAME) --no-print-directory --no-keep-going \
  28. internal-simbltweak-compile \
  29. _THEOS_CURRENT_TYPE=$(_THEOS_CURRENT_TYPE) THEOS_CURRENT_INSTANCE=$(THEOS_CURRENT_INSTANCE) _THEOS_CURRENT_OPERATION=compile \
  30. THEOS_BUILD_DIR="$(THEOS_BUILD_DIR)" _THEOS_MAKE_PARALLEL=yes$(ECHO_END)
  31. internal-simbltweak-compile: $(THEOS_OBJ_DIR)/$(_LOCAL_INSTANCE_TARGET)
  32. endif
  33. $(eval $(call _THEOS_TEMPLATE_DEFAULT_LINKING_RULE,$(_LOCAL_INSTANCE_TARGET)))
  34. internal-simbltweak-stage_:: shared-instance-bundle-stage
  35. $(eval $(call __mod,instance/simbltweak.mk))