fix cairo/pixman config.h conflict problem.

This commit is contained in:
xianjimli 2019-08-15 06:28:23 +08:00
parent cbe5e0ae2c
commit 44fdbb44b5
44 changed files with 47 additions and 45 deletions

View File

@ -38,7 +38,7 @@
#include "cairo-types-private.h"
#include <pixman.h>
#include <pixman/pixman.h>
CAIRO_BEGIN_DECLS

View File

@ -41,7 +41,7 @@
#include "cairo-surface-private.h"
#include <stddef.h>
#include <pixman.h>
#include <pixman/pixman.h>
CAIRO_BEGIN_DECLS

View File

@ -40,7 +40,7 @@
#include "cairo-pixman-private.h" /* keep make check happy */
#include <pixman.h>
#include <pixman/pixman.h>
#if PIXMAN_VERSION < PIXMAN_VERSION_ENCODE(0,22,0)
#define pixman_image_composite32 pixman_image_composite

View File

@ -42,7 +42,7 @@
#include "cairo-types-private.h"
#include "cairo-reference-count-private.h"
#include <pixman.h>
#include <pixman/pixman.h>
CAIRO_BEGIN_DECLS

View File

@ -68,7 +68,7 @@
#include <stdio.h>
#include "cairo.h"
#include <pixman.h>
#include <pixman/pixman.h>
#include "cairo-compiler-private.h"
#include "cairo-error-private.h"

View File

@ -25,7 +25,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>

View File

@ -27,7 +27,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <string.h>

View File

@ -24,7 +24,7 @@
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -20,7 +20,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -27,7 +27,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>

View File

@ -26,7 +26,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <math.h>

View File

@ -22,7 +22,7 @@
* SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <math.h>

View File

@ -25,7 +25,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>

View File

@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <string.h>

View File

@ -24,7 +24,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <string.h>
#include <stdlib.h>

View File

@ -29,7 +29,7 @@
#include <math.h>
#include <assert.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -26,7 +26,7 @@
* SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>

View File

@ -25,7 +25,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -24,7 +24,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>

View File

@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>
#include "pixman-private.h"

View File

@ -26,7 +26,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>
#include "pixman-private.h"

View File

@ -25,7 +25,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <math.h>

View File

@ -30,7 +30,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -20,7 +20,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -30,7 +30,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#if defined USE_X86_MMX || defined USE_ARM_IWMMXT || defined USE_LOONGSON_MMI

View File

@ -22,7 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <string.h>
#include <stdlib.h>

View File

@ -20,7 +20,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -28,7 +28,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>
#include <math.h>

View File

@ -23,7 +23,7 @@
* Author: Soren Sandmann <sandmann@redhat.com>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#undef PIXMAN_DISABLE_DEPRECATED

View File

@ -23,7 +23,7 @@
* Author: Soren Sandmann <sandmann@redhat.com>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -27,7 +27,7 @@
* Based on work by Owen Taylor and Søren Sandmann
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
/* PSHUFD is slow on a lot of old processors, and new processors have SSSE3 */

View File

@ -24,7 +24,7 @@
* Author: Soren Sandmann (soren.sandmann@gmail.com)
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>

View File

@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdlib.h>

View File

@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdio.h>

View File

@ -23,7 +23,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>

View File

@ -26,7 +26,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"
#include "pixman-combine32.h"

View File

@ -20,7 +20,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -24,7 +24,7 @@
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include "pixman-private.h"

View File

@ -69,7 +69,7 @@ SOFTWARE.
#ifndef PIXMAN_H__
#define PIXMAN_H__
#include <pixman-version.h>
#include "pixman-version.h"
#ifdef __cplusplus
#define PIXMAN_BEGIN_DECLS extern "C" {

View File

@ -38,7 +38,7 @@ if OS_NAME == 'Windows':
else:
NANOVG_BACKEND='GL3'
#VGCANVAS='CAIRO'
VGCANVAS='CAIRO'
#NANOVG_BACKEND='GLES2'
#NANOVG_BACKEND='GLES3'
#NANOVG_BACKEND='AGG'
@ -178,8 +178,7 @@ CPPPATH=[TK_ROOT,
TK_3RD_ROOT,
joinPath(TK_SRC, 'ext_widgets'),
joinPath(TK_3RD_ROOT, 'pixman'),
joinPath(TK_3RD_ROOT, 'pixman/pixman'),
joinPath(TK_3RD_ROOT, 'cairo/cairo'),
joinPath(TK_3RD_ROOT, 'cairo'),
joinPath(TK_3RD_ROOT, 'bgfx/bgfx/include'),
joinPath(TK_3RD_ROOT, 'bgfx/bx/include'),
joinPath(TK_3RD_ROOT, 'bgfx/bimg/include'),

View File

@ -1,4 +1,7 @@
# 最新动态
* 2019/08/15
* 修改cairo/pixman config.h冲突的问题(感谢陈谭提供补丁)
* 2019/08/14
* 完善文档。
* 增加宏TK\_XML\_MAX\_ATTRS用于控制XML属性的最大个数(缺省24)。

View File

@ -24,7 +24,7 @@
#include "tkc/utf8.h"
#include "base/vgcanvas.h"
#include "cairo.h"
#include "cairo/cairo.h"
#include "tkc/mem.h"
#include "tkc/darray.h"