summaryrefslogtreecommitdiff
path: root/msvc/generate-msvc.mak
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2020-02-27 13:37:28 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2020-02-27 13:37:55 +0900
commit0054dbbb5b311ef9f829892e1930270f1ae9c650 (patch)
tree3db75894cad80dd7efbdc4f775ae091789c4e2ca /msvc/generate-msvc.mak
parentd6aeddce255532eac0773f2d08cb024b2f18e989 (diff)
downloadlibpsl-upstream.tar.gz
libpsl-upstream.tar.bz2
libpsl-upstream.zip
Imported Upstream version 0.21.0upstream/0.21.0upstream
Change-Id: Ic1af9849dd9029d9a28d800b4d397030cffd4aaa
Diffstat (limited to 'msvc/generate-msvc.mak')
-rw-r--r--msvc/generate-msvc.mak31
1 files changed, 31 insertions, 0 deletions
diff --git a/msvc/generate-msvc.mak b/msvc/generate-msvc.mak
new file mode 100644
index 0000000..a778fa8
--- /dev/null
+++ b/msvc/generate-msvc.mak
@@ -0,0 +1,31 @@
+# NMake Makefile portion for code generation and
+# intermediate build directory creation
+# Items in here should not need to be edited unless
+# one is maintaining the NMake build files.
+
+# Create the build directories
+$(CFG)\$(PLAT)\libpsl \
+$(CFG)\$(PLAT)\psl \
+$(CFG)\$(PLAT)\tests:
+ @-md $@
+
+$(CFG)\$(PLAT)\libpsl\suffixes_dafsa.h: $(CFG)\$(PLAT)\libpsl $(PSL_FILE) ..\src\psl-make-dafsa
+ @echo Generating $@
+ $(PYTHON) ..\src\psl-make-dafsa --output-format=cxx+ "$(PSL_FILE_INPUT)" $@
+
+$(CFG)\$(PLAT)\psl.dafsa: $(CFG)\$(PLAT)\tests
+ @echo Generating $@
+ $(PYTHON) ..\src\psl-make-dafsa --output-format=binary "$(PSL_FILE_INPUT)" $@
+
+$(CFG)\$(PLAT)\psl_ascii.dafsa: $(CFG)\$(PLAT)\tests
+ @echo Generating $@
+ $(PYTHON) ..\src\psl-make-dafsa --output-format=binary --encoding=ascii "$(PSL_FILE_INPUT)" $@
+
+libpsl.pc: ..\libpsl.pc.in
+ @echo Generating $@
+ $(PYTHON) libpsl-pc.py --name=$(PACKAGE_NAME) \
+ --version=$(PACKAGE_VERSION) --url=$(PACKAGE_URL) --prefix=$(PREFIX)
+
+..\config.h: config.h.win32
+ @echo Generating $@
+ @copy $** $@