This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

lgi: Generate version.lua file

  • Loading branch information...
TingPing committed Sep 29, 2016
1 parent 57f645b commit c806288d8e9dd0ec969bd7c1dd6b792713e45189
Showing with 7 additions and 1 deletion.
  1. +7 −1 lgi/lgi/Makefile-msvc.mak
@@ -8,6 +8,9 @@ SOURCES = \
record.c
DLL = corelgilua51.dll
VERSION_FILE = version.lua
VERSION = 0.9.1
LUA_CFLAGS = /I$(PREFIX)\include\luajit-2.0
GLIB_CFLAGS = /I$(PREFIX)\include\glib-2.0 /I$(PREFIX)\lib\glib-2.0\include
@@ -18,11 +21,14 @@ GLIB_LIBS = gmodule-2.0.lib gobject-2.0.lib glib-2.0.lib
GIR_LIBS = girepository-1.0.lib
FFI_LIBS = libffi.lib
$(VERSION_FILE):
echo return '$(VERSION)' > $@
$(DLL): $(SOURCES)
cl /nologo /c /O2 /MD $(SOURCES) /I$(PREFIX)/include $(LUA_CFLAGS) $(GLIB_CFLAGS) $(GIR_CFLAGS)
link /nologo /DLL /OUT:$(DLL) .\*.obj /libpath:$(PREFIX)\lib $(LUA_LIBS) $(GLIB_LIBS) $(GIR_LIBS) $(FFI_LIBS)
install: $(DLL)
install: $(DLL) $(VERSION_FILE)
mkdir $(DESTDIR)\lib\lua\lgi
copy $(DLL) $(DESTDIR)\lib\lua\lgi

0 comments on commit c806288

Please sign in to comment.