spiegel-keyman/developer/src/tike/Makefile

90 lines
3.2 KiB
Makefile

#
# TIKE Makefile
#
!include ..\Defines.mak
build: version.res manifest.res icons dirs xml xsd pull-core
cd $(DEVELOPER_ROOT)\src\tike
$(DELPHI_MSBUILD) tike.dproj "/p:Platform=Win32"
$(SENTRYTOOL_DELPHIPREP) $(WIN32_TARGET_PATH)\tike.exe -dpr tike.dpr
$(TDS2DBG) $(WIN32_TARGET_PATH)\tike.exe
$(COPY) $(WIN32_TARGET_PATH)\tike.exe $(DEVELOPER_PROGRAM)
$(COPY) kmlmc.cmd $(DEVELOPER_PROGRAM)
$(COPY) $(KEYMAN_ROOT)\core\build\x86\$(TARGET_PATH)\src\kmnkbp0-0.dll $(DEVELOPER_PROGRAM)
if exist $(WIN32_TARGET_PATH)\tike.dbg $(COPY) $(WIN32_TARGET_PATH)\tike.dbg $(DEVELOPER_DEBUGPATH)
xsd:
$(COPY) $(KEYMAN_ROOT)\common\schemas\kps\kps.xsd $(DEVELOPER_PROGRAM)
xml: pull-npm sentry-init.js
cd $(DEVELOPER_ROOT)\src\tike\xml
-del /q $(DEVELOPER_PROGRAM)\xml\*
xcopy /s /y * $(DEVELOPER_PROGRAM)\xml
cd $(DEVELOPER_ROOT)\src\tike
sentry-init.js:
cd $(DEVELOPER_ROOT)\src\tike\xml\app\lib\sentry
$(MKVER_U) init.js.in init.js
pull-core:
cd $(KEYMAN_ROOT)\core
!ifdef GIT_BASH_FOR_KEYMAN
!ifdef DEBUG
$(GIT_BASH_FOR_KEYMAN) build.sh --debug
!else
$(GIT_BASH_FOR_KEYMAN) build.sh
!endif
!else
!ifdef DEBUG
start /wait ./build.sh --debug
!else
start /wait ./build.sh
!endif
!endif
pull-npm:
#
# Grab the version of Monaco and any other node modules
# that we want to use in Keyman Developer, and copy into
# lib folder for sane paths. If we use more npm modules in the
# future, we may consolidate the paths at that time.
#
cd $(DEVELOPER_ROOT)\src\tike\xml\app
npm install
-rd /s/q $(DEVELOPER_ROOT)\src\tike\xml\app\lib\monaco
xcopy /i /s /y $(DEVELOPER_ROOT)\src\tike\xml\app\node_modules\monaco-editor\min $(DEVELOPER_ROOT)\src\tike\xml\app\lib\monaco\min
xcopy /i /s /y $(DEVELOPER_ROOT)\src\tike\xml\app\node_modules\monaco-editor\min-maps $(DEVELOPER_ROOT)\src\tike\xml\app\lib\monaco\min-maps
icons:
rc icons.rc
clean: def-clean
if exist icons.res del icons.res
signcode:
$(SIGNCODE) /d "Keyman Developer" $(DEVELOPER_PROGRAM)\tike.exe
$(SIGNCODE) /d "Keyman Core" $(DEVELOPER_PROGRAM)\kmnkbp0-0.dll
wrap-symbols:
$(SYMSTORE) $(DEVELOPER_PROGRAM)\tike.exe /t keyman-developer
$(SYMSTORE) $(DEVELOPER_DEBUGPATH)\tike.dbg /t keyman-developer
install:
$(COPY) $(DEVELOPER_PROGRAM)\tike.exe "$(INSTALLPATH_KEYMANDEVELOPER)\tike.exe"
$(COPY) $(DEVELOPER_PROGRAM)\kmnkbp0-0.dll "$(INSTALLPATH_KEYMANDEVELOPER)\kmnkbp0-0.dll"
test-manifest:
# test that linked manifest exists and correct
$(MT) -nologo -inputresource:$(DEVELOPER_PROGRAM)\tike.exe -validate_manifest
generate-app-wxs:
@echo *******************************************************************************************
@echo The generated ..\inst\monaco_gen.wxs file will require manual merging with the existing
@echo monaco.xws. Existing component GUIDs must be maintained per Windows Installer component
@echo rules (a file at a single location should have a permanent GUID for reference counting).
@echo *******************************************************************************************
$(WIXPATH)\heat.exe dir xml\app\lib\monaco\min\vs -gg -o ..\inst\monaco_gen.wxs -cg MonacoFiles -var var.MonacoSourceDir -dr MonacoTargetDir
!include ..\Target.mak