diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 20:55:26 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 20:55:26 +0000 |
commit | 59728293e2768e9d35b9e4245e5ed92c74b430f6 (patch) | |
tree | 118be7e003f4bc203d5982d9040e947971ac2a4a /third_party/yasm | |
parent | c51ef1fa8a0975abf71afe1526bb2859e847eede (diff) | |
download | chromium_src-59728293e2768e9d35b9e4245e5ed92c74b430f6.zip chromium_src-59728293e2768e9d35b9e4245e5ed92c74b430f6.tar.gz chromium_src-59728293e2768e9d35b9e4245e5ed92c74b430f6.tar.bz2 |
Build YASM on Windows using Visual Studio
BUG=70688
TEST=None
Review URL: http://codereview.chromium.org/7109030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/yasm')
-rw-r--r-- | third_party/yasm/source/config/win/config.h | 176 | ||||
-rw-r--r-- | third_party/yasm/source/config/win/libyasm-stdint.h | 9 | ||||
-rw-r--r-- | third_party/yasm/source/config/win/stdint.h | 30 |
3 files changed, 215 insertions, 0 deletions
diff --git a/third_party/yasm/source/config/win/config.h b/third_party/yasm/source/config/win/config.h new file mode 100644 index 0000000..3fe9f2d --- /dev/null +++ b/third_party/yasm/source/config/win/config.h @@ -0,0 +1,176 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Command name to run C preprocessor */ +#define CPP_PROG "gcc -E" + +/* */ +/* #undef ENABLE_NLS */ + +/* Define to 1 if you have the `abort' function. */ +#define HAVE_ABORT 1 + +/* */ +/* #undef HAVE_CATGETS */ + +/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the + CoreFoundation framework. */ +/* #undef HAVE_CFLOCALECOPYCURRENT */ + +/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +#define HAVE_DCGETTEXT 1 + +/* Define to 1 if you have the <direct.h> header file. */ +#define HAVE_DIRECT_H 1 + +/* Define to 1 if you have the `ftruncate' function. */ +/* #undef HAVE_FTRUNCATE */ + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* */ +#define HAVE_GETTEXT 1 + +/* Define to 1 if you have the GNU C Library */ +#define HAVE_GNU_C_LIBRARY 0 + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* */ +/* #undef HAVE_LC_MESSAGES */ + +/* Define to 1 if you have the <libgen.h> header file. */ +/* #undef HAVE_LIBGEN_H */ + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mergesort' function. */ +/* #undef HAVE_MERGESORT */ + +/* Define to 1 if you have the `popen' function. */ +/* #undef HAVE_POPEN */ + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* */ +/* #undef HAVE_STPCPY */ + +/* Define to 1 if you have the `strcasecmp' function. */ +/* #undef HAVE_STRCASECMP */ + +/* Define to 1 if you have the `strcmpi' function. */ +/* #undef HAVE_STRCMPI */ + +/* Define to 1 if you have the `stricmp' function. */ +/* #undef HAVE_STRICMP */ + +/* Define to 1 if you have the <strings.h> header file. */ +/* #undef HAVE_STRINGS_H */ + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strncasecmp' function. */ +#define HAVE_STRNCASECMP 1 + +/* Define to 1 if you have the `strsep' function. */ +/* #undef HAVE_STRSEP */ + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the `toascii' function. */ +#define HAVE_TOASCII 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +/* #undef HAVE_UNISTD_H */ + +/* Define to 1 if you have the `vsnprintf' function. */ +#define HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the `_stricmp' function. */ +/* #undef HAVE__STRICMP */ + +/* Name of package */ +#define PACKAGE "yasm" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "bug-yasm@tortall.net" + +/* Define to build version of this package. */ +#define PACKAGE_BUILD "HEAD" + +/* Define to internal version of this package. */ +#define PACKAGE_INTVER "0.7.99" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "yasm" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "yasm HEAD" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "yasm" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "HEAD" + +/* Define to 1 if the C compiler supports function prototypes. */ +#define PROTOTYPES 1 + +/* The size of `char', as computed by sizeof. */ +/* #undef SIZEOF_CHAR */ + +/* The size of `int', as computed by sizeof. */ +/* #undef SIZEOF_INT */ + +/* The size of `long', as computed by sizeof. */ +/* #undef SIZEOF_LONG */ + +/* The size of `short', as computed by sizeof. */ +/* #undef SIZEOF_SHORT */ + +/* The size of `void*', as computed by sizeof. */ +/* #undef SIZEOF_VOIDP */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "HEAD" + +/* Define if using the dmalloc debugging malloc package */ +/* #undef WITH_DMALLOC */ + +/* Define like PROTOTYPES; this can be used by system headers. */ +#define __PROTOTYPES 1 + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +/* #undef size_t */ diff --git a/third_party/yasm/source/config/win/libyasm-stdint.h b/third_party/yasm/source/config/win/libyasm-stdint.h new file mode 100644 index 0000000..357610e --- /dev/null +++ b/third_party/yasm/source/config/win/libyasm-stdint.h @@ -0,0 +1,9 @@ +#ifndef _YASM_LIBYASM_STDINT_H +#define _YASM_LIBYASM_STDINT_H 1 +#ifndef _GENERATED_STDINT_H +#define _GENERATED_STDINT_H "yasm HEAD" +/* generated using gcc -std=gnu99 */ +#define _STDINT_HAVE_STDINT_H 1 +#include <stdint.h> +#endif +#endif diff --git a/third_party/yasm/source/config/win/stdint.h b/third_party/yasm/source/config/win/stdint.h new file mode 100644 index 0000000..d77df92 --- /dev/null +++ b/third_party/yasm/source/config/win/stdint.h @@ -0,0 +1,30 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// YASM is written in C99 and requires <stdint.h> and <inttypes.h>. + +#ifndef THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_ +#define THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_ + +#if !defined(_MSC_VER) +#error This file should only be included when compiling with MSVC. +#endif + +// Define C99 equivalent types. +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; +typedef signed long long int64_t; +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +typedef unsigned long long uint64_t; + +// Define the C99 INT64_C macro that is used for declaring 64-bit literals. +// Technically, these should only be definied when __STDC_CONSTANT_MACROS +// is defined. +#define INT64_C(value) value##LL +#define UINT64_C(value) value##ULL + +#endif // THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_ |