ec68ee9d56
The old code requires that include/config/SkUserConfig.h exists, to ensure that it gets copied into Android's include/core/SkUserConfig.h when we do a merge. However, if a developer wants to make changes and rerun the script, they should not have to recreate include/config/SkUserConfig.h just to rerun the script. By default, allow the original to not exist and just skip the copy. Update tests to pass. Also add tests to support this use case. Make gyp_to_android.py executable. R=robertphillips@google.com, halcanary@google.com Author: scroggo@google.com Review URL: https://codereview.chromium.org/242203008 git-svn-id: http://skia.googlecode.com/svn/trunk@14273 2bbb7eff-a529-9590-31e7-b0007b416f81
34 lines
831 B
Plaintext
34 lines
831 B
Plaintext
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT.
|
|
//
|
|
// This file contains Skia's upstream include/config/SkUserConfig.h as a
|
|
// reference, followed by the actual defines set for Android.
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
// Android defines:
|
|
#ifndef SkUserConfig_Android_DEFINED
|
|
#define SkUserConfig_Android_DEFINED
|
|
#ifdef ANDROID
|
|
#include <utils/misc.h>
|
|
#endif
|
|
|
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
#define SK_CPU_BENDIAN
|
|
#undef SK_CPU_LENDIAN
|
|
#else
|
|
#define SK_CPU_LENDIAN
|
|
#undef SK_CPU_BENDIAN
|
|
#endif
|
|
|
|
#define SK_BUILD_FOR_ANDROID
|
|
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
|
|
#define SK_SCALAR_IS_FLOAT
|
|
#define foo
|
|
#define bar
|
|
|
|
#endif // SkUserConfig_Android_DEFINED
|