Add config so #include <sqlite3.h> works without include_dir mucking
Change-Id: I767f7d2692c6232aa45eac329963ee56487a5c6a
diff --git a/BUILD.gn b/BUILD.gn
index c4d192f..210aa95 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -26,6 +26,11 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Lets callers do '#include <sqlite3.h>'
+config("sqlite_config") {
+ include_dirs = [ "." ]
+}
+
shared_library("sqlite") {
sources = [
"sqlite3.c",
@@ -49,9 +54,9 @@
"SQLITE_ENABLE_RTREE",
"SQLITE_ENABLE_RTREE",
"SQLITE_THREADSAFE=1",
- "SQLITE_API=__attribute__((__visibility__(\"default\")))"
+ "SQLITE_API=__attribute__((__visibility__(\"default\")))",
]
- deps = []
+ public_configs = [ ":sqlite_config" ]
}
executable("shell") {