commit 7ce413444bef3009f25d0b1deaf2e327145a36c9
parent b0316a45ce474785fc05a01ed45b9c98f755ae91
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 17 Jan 2016 17:36:24 -0800
build with sqlite on windows
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
@@ -65,7 +65,9 @@ vendor
to `<reapack directory>\vendor` as `libcurl_x64`
6. Copy `<curl directory>\builds\libcurl-vc-x86-release-static-ipv6-sspi-winssl`
to `<reapack directory>\vendor` as `libcurl_x86`
-7. Run `rake` from this directory using
+7. Download the latest stable amalgamation build of [sqlite](https://www.sqlite.org/download.html).
+ Put `sqlite3.h` and `sqlite3.c` in `<reapack>\vendor`.
+8. Run `rake` from this directory using
"Developer Command Prompt for VS2013"
-8. Copy `x64\bin\reaper_reapack_x64.dll` to your REAPER
+9. Copy `x64\bin\reaper_reapack_x64.dll` to your REAPER
plugin folder (replace x64 with x86 for 32-bit)
diff --git a/win32.tup b/win32.tup
@@ -14,8 +14,11 @@ LD := $(WRAP) link
LDFLAGS := /nologo user32.lib
LDFLAGS += vendor/libcurl_@(WINARCH)/lib/libcurl_a.lib
LDFLAGS += $(TUP_VARIANTDIR)/src/resource.res
+LDFLAGS += $(TUP_VARIANTDIR)/build/vendor/sqlite3.o
LDFLAGS += /DEBUG /OPT:REF /PDBALTPATH:%_PDB%
+LINKDEPS := src/resource.res build/vendor/sqlite3.o
+
RC := rc
RCFLAGS += /nologo /fo $(TUP_VARIANTDIR)/src/resource.res
@@ -27,9 +30,8 @@ TEST := $(TUP_VARIANTDIR)/bin/test.exe
TSFLAGS := /OUT:$(TEST)
TSTARGET := bin/test.exe bin/test.lib bin/test.exp
-LINKDEPS := src/resource.res
-
!build = |> $(CXX) $(CXXFLAGS) /c %f /Fo%o |>
!link = |> $(LD) $(LDFLAGS) %f |>
: src/resource.rc |> $(RC) $(RCFLAGS) %f |> src/resource.res
+: vendor/sqlite3.c |> !build /Os |> build/vendor/sqlite3.o