Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: build/build_config.h

Issue 172032: First cut for a FreeBSD port - much still not working (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/build_config.h
===================================================================
--- build/build_config.h (revision 25593)
+++ build/build_config.h (working copy)
@@ -26,16 +26,34 @@
#elif defined(_WIN32)
#define OS_WIN 1
#define TOOLKIT_VIEWS 1
+#elif defined(__FreeBSD__)
+#define OS_FREEBSD 1
+#define TOOLKIT_GTK
#else
#error Please add support for your platform in build/build_config.h
#endif
-// For access to standard POSIX features, use OS_POSIX instead of a more
-// specific macro.
-#if defined(OS_MACOSX) || defined(OS_LINUX)
+// For access to standard POSIXish features, use OS_POSIX instead of a
+// more specific macro.
+#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD)
#define OS_POSIX 1
#endif
+// Use base::DataPack for name/value pairs.
+#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD)
+#define USE_BASE_DATA_PACK 1
+#endif
+
+// Use NSS for crypto.
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
+#define USE_NSS 1
+#endif
+
+// Use X11 (and hence GTK/GDK)
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
+#define USE_X11 1
+#endif
+
// Compiler detection.
#if defined(__GNUC__)
#define COMPILER_GCC 1

Powered by Google App Engine
This is Rietveld 408576698