Skip to content

Commit 9454857

Browse files
author
Marcos Slomp
committed
using relative include paths for third-party dependencies to facilitate integration with host application
1 parent b493213 commit 9454857

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

demo/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ int main()
195195
if (!input_full.defined())
196196
return -1;
197197

198+
// ordinarily, once can wrap a Func around a buffer as follows:
199+
//Func image = Func(input_full);
200+
// or even when T=void:
201+
//Halide::Buffer<> input_full_void = input_full;
202+
//Func image = Func(input_full_void);
203+
// but for the examples here, we want to protect the bounds too:
198204
Func image = SafeIdentity(input_full, "safe_image");
199205

200206
Func broken = example_broken(image);

src/imgui_main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
// we also need to define this to prevent imgui.h form including the stock
2424
// version of imconfig.h
2525
#define IMGUI_DISABLE_INCLUDE_IMCONFIG_H
26-
#include <imgui.h>
27-
#include <imgui_impl_glfw.h>
28-
#include <imgui_impl_opengl2.h>
26+
#include "../third-party/imgui/imgui.h"
27+
#include "../third-party/imgui/examples/imgui_impl_glfw.h"
28+
#include "../third-party/imgui/examples/imgui_impl_opengl2.h"
2929

3030
#define ENABLE_IMGUI_DEMO (0)
3131

@@ -42,7 +42,7 @@ namespace ImGui
4242

4343
#include <stdio.h>
4444
#include <Halide.h>
45-
#include <GLFW/glfw3.h>
45+
#include "../third-party/glfw/include/GLFW/glfw3.h"
4646

4747
#include "system.hpp"
4848
#include "utils.h"

0 commit comments

Comments
 (0)