Make overrides mirror submodule file structure.
This commit is contained in:
@@ -62,12 +62,12 @@
|
||||
|
||||
<section if="LIME_CAIRO">
|
||||
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/src/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/default/" unless="windows || mac || linux" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/linux/" if="linux" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/windows/" if="windows" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/mac/" if="mac" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/cairo/src" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/cairo/src/" />
|
||||
<compilerflag value="-DLIME_CAIRO" />
|
||||
<compilerflag value="-DHAVE_CONFIG_H" />
|
||||
<compilerflag value="-DCAIRO_WIN32_STATIC_BUILD" if="windows" />
|
||||
|
||||
@@ -51,19 +51,19 @@ All cases require updating the corresponding files.xml file.
|
||||
- To add or override a header, include the overrides folder first (if not already included).
|
||||
|
||||
```diff
|
||||
+<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/sdl/" />
|
||||
+<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/sdl/include/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/sdl/include/" />
|
||||
```
|
||||
|
||||
- To add a source file, insert a `<file />` tag.
|
||||
|
||||
```diff
|
||||
+<file name="${NATIVE_TOOLKIT_PATH}/overrides/sdl/SDL_extra.c" />
|
||||
+<file name="${NATIVE_TOOLKIT_PATH}/overrides/sdl/src/SDL_extra.c" />
|
||||
```
|
||||
|
||||
- To override a source file, replace the `<file />` tag.
|
||||
|
||||
```diff
|
||||
-<file name="${NATIVE_TOOLKIT_PATH}/sdl/src/SDL_log.c" />
|
||||
+<file name="${NATIVE_TOOLKIT_PATH}/overrides/sdl/SDL_log.c" />
|
||||
+<file name="${NATIVE_TOOLKIT_PATH}/overrides/sdl/src/SDL_log.c" />
|
||||
```
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<files id="native-toolkit-cairo" >
|
||||
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/src/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/default/" unless="windows || mac || linux" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/linux/" if="linux" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/cairo/configs/windows/" if="windows" />
|
||||
@@ -12,7 +12,7 @@
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/freetype/include/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/freetype/include/" />
|
||||
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/pixman/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/pixman/pixman/" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/pixman/pixman/" />
|
||||
|
||||
<compilerflag value="-DNDEBUG" unless="debug" />
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<files id="native-toolkit-pixman" >
|
||||
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/pixman" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/overrides/pixman/pixman" />
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/pixman/pixman" />
|
||||
<compilerflag value="-DHAVE_CONFIG_H" />
|
||||
<compilerflag value="-DPIXMAN_NO_TLS" if="windows" />
|
||||
|
||||
Reference in New Issue
Block a user