File: generate-msvc.mak

package info (click to toggle)
gjs 1.58.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,140 kB
  • sloc: cpp: 24,189; sh: 4,931; ansic: 573; makefile: 206; xml: 75
file content (24 lines) | stat: -rw-r--r-- 943 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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.

# Copy the pre-defined config.h.win32
vs$(VSVER)\$(CFG)\$(PLAT)\libgjs\config.h: config.h.win32 vs$(VSVER)\$(CFG)\$(PLAT)\libgjs
	@-copy $(@B).h.win32 $@

# Create the build directories
vs$(VSVER)\$(CFG)\$(PLAT)\module-console	\
vs$(VSVER)\$(CFG)\$(PLAT)\module-system	\
vs$(VSVER)\$(CFG)\$(PLAT)\module-resources	\
vs$(VSVER)\$(CFG)\$(PLAT)\module-cairo	\
vs$(VSVER)\$(CFG)\$(PLAT)\libgjs		\
vs$(VSVER)\$(CFG)\$(PLAT)\gjs-console:
	@-mkdir $@

# Generate the GResource sources
vs$(VSVER)\$(CFG)\$(PLAT)\module-resources\modules-resources.h	\
vs$(VSVER)\$(CFG)\$(PLAT)\module-resources\modules-resources.c: ..\modules\modules.gresource.xml
	$(PREFIX)\bin\glib-compile-resources.exe --target=$@	\
	--sourcedir=.. --generate --c-name modules_resources	\
	$**