2014-08-13 10:39:27 +01:00
|
|
|
thisdir = class/Mono.Data.Sqlite
|
|
|
|
SUBDIRS =
|
|
|
|
include ../../build/rules.make
|
|
|
|
|
|
|
|
RESX_RESOURCES = resources/SR.resources
|
|
|
|
OTHER_RESOURCES = $(wildcard resources/*.bmp)
|
|
|
|
|
|
|
|
RESOURCES = $(RESX_RESOURCES) $(OTHER_RESOURCES)
|
|
|
|
|
|
|
|
PREBUILT = $(RESX_RESOURCES:=.prebuilt)
|
|
|
|
|
|
|
|
LIBRARY = Mono.Data.Sqlite.dll
|
2015-08-26 07:17:56 -04:00
|
|
|
LIB_REFS = System System.Data System.Transactions System.Xml
|
|
|
|
LIB_MCS_FLAGS = /unsafe \
|
2014-08-13 10:39:27 +01:00
|
|
|
$(RESOURCES:%=-resource:%) -d:SQLITE_STANDARD
|
|
|
|
|
|
|
|
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /nowarn:618
|
|
|
|
|
|
|
|
EXTRA_DISTFILES = Test/SqliteTest.cs \
|
|
|
|
Test/test.sql \
|
|
|
|
resources/SR.resx \
|
|
|
|
resources/DataTypes.xml \
|
|
|
|
resources/MetaDataCollections.xml \
|
|
|
|
$(PREBUILT) \
|
|
|
|
$(wildcard resources/*.bmp)
|
2015-08-26 07:17:56 -04:00
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
CLEAN_FILES += $(RESX_RESOURCES)
|
|
|
|
|
|
|
|
CLEAN_FILES = $(RESX_RESOURCES)
|
|
|
|
|
|
|
|
test-local: test.db
|
|
|
|
|
|
|
|
test.db: Test/test.sql
|
|
|
|
rm -f $@
|
|
|
|
sqlite3 $@ < $< || :
|
|
|
|
|
|
|
|
include ../../build/library.make
|
|
|
|
|
|
|
|
$(the_lib): $(RESOURCES)
|
|
|
|
|
|
|
|
$(PREBUILT): %.prebuilt: %
|
|
|
|
cp $* $@
|
|
|
|
|
|
|
|
$(RESX_RESOURCES): %.resources: %.resx
|
2016-11-10 13:04:39 +00:00
|
|
|
$(RESGEN) -useSourcePath $< || cp $@.prebuilt $@
|
2014-08-13 10:39:27 +01:00
|
|
|
|