From 158b8e002238d8aaac7e0775e9dc0558d0a9caa2 Mon Sep 17 00:00:00 2001
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Date: Sun, 11 Dec 2016 14:30:27 +0000
Subject: [PATCH] get_package_dependencies: set include path for curl on Haiku
---
src/tools/get_package_dependencies/HTTPClient.cpp | 2 ++
src/tools/get_package_dependencies/HTTPClient.h | 4 +++-
src/tools/get_package_dependencies/Jamfile | 6 ++++++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/tools/get_package_dependencies/HTTPClient.cpp b/src/tools/get_package_dependencies/HTTPClient.cpp
index 2297d4d..d4e6777 100644
a
|
b
|
|
11 | 11 | |
12 | 12 | #include <File.h> |
13 | 13 | |
| 14 | #include <curl/curl.h> |
| 15 | |
14 | 16 | |
15 | 17 | HTTPClient::HTTPClient() |
16 | 18 | : |
diff --git a/src/tools/get_package_dependencies/HTTPClient.h b/src/tools/get_package_dependencies/HTTPClient.h
index d178153..1b5fd33 100644
a
|
b
|
|
11 | 11 | |
12 | 12 | #include <String.h> |
13 | 13 | #include <Entry.h> |
14 | | #include <curl/curl.h> |
| 14 | |
| 15 | |
| 16 | typedef void CURL; |
15 | 17 | |
16 | 18 | |
17 | 19 | class HTTPClient { |
diff --git a/src/tools/get_package_dependencies/Jamfile b/src/tools/get_package_dependencies/Jamfile
index 452afab..d6c7624 100644
a
|
b
|
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin pkgman ] ;
|
6 | 6 | |
7 | 7 | USES_BE_API on <build>get_package_dependencies = true ; |
8 | 8 | |
| 9 | # TODO: remove this hack once gcc2 has -iquote implemented |
| 10 | if $(HOST_PLATFORM) = haiku_host && $(HOST_GCC_VERSION[1]) < 3 { |
| 11 | local locations = system/non-packaged system ; |
| 12 | SourceHdrs HTTPClient.cpp : /boot/$(locations)/develop/headers/curl ; |
| 13 | } |
| 14 | |
9 | 15 | BuildPlatformMain <build>get_package_dependencies : |
10 | 16 | get_package_dependencies.cpp |
11 | 17 | HTTPClient.cpp |