[libdazzle] build: disable counters on win32/win64



commit d15f07ad556fef6d2f270423b085b297c0c16f31
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 5 11:43:27 2017 -0700

    build: disable counters on win32/win64

 src/util/meson.build    |   10 ++++++++--
 src/widgets/meson.build |    7 +++++--
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/src/util/meson.build b/src/util/meson.build
index e5575e6..9ce06d4 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -1,6 +1,5 @@
 util_headers = [
   'dzl-cairo.h',
-  'dzl-counter.h',
   'dzl-date-time.h',
   'dzl-dnd.h',
   'dzl-file-manager.h',
@@ -16,7 +15,6 @@ util_headers = [
 
 util_sources = [
   'dzl-cairo.c',
-  'dzl-counter.c',
   'dzl-date-time.c',
   'dzl-dnd.c',
   'dzl-file-manager.c',
@@ -30,6 +28,14 @@ util_sources = [
   'dzl-variant.c',
 ]
 
+# No counters if building on win32 for now.
+# They need explicit porting to that platform and should
+# probably just wrap the eventtrace API or something.
+if host_machine.system() != 'windows'
+  util_headers += ['dzl-counter.h']
+  util_sources += ['dzl-counter.c']
+endif
+
 libdazzle_public_headers += files(util_headers)
 libdazzle_public_sources += files(util_sources)
 
diff --git a/src/widgets/meson.build b/src/widgets/meson.build
index 5563357..cbb0fa3 100644
--- a/src/widgets/meson.build
+++ b/src/widgets/meson.build
@@ -4,7 +4,6 @@ widgets_headers = [
   'dzl-box.h',
   'dzl-centering-bin.h',
   'dzl-column-layout.h',
-  'dzl-counters-window.h',
   'dzl-elastic-bin.h',
   'dzl-empty-state.h',
   'dzl-entry-box.h',
@@ -33,7 +32,6 @@ widgets_sources = [
   'dzl-box.c',
   'dzl-centering-bin.c',
   'dzl-column-layout.c',
-  'dzl-counters-window.c',
   'dzl-elastic-bin.c',
   'dzl-empty-state.c',
   'dzl-entry-box.c',
@@ -56,6 +54,11 @@ widgets_sources = [
   'dzl-three-grid.c',
 ]
 
+if host_machine.system() != 'windows'
+  widgets_headers += ['dzl-counters-window.h']
+  widgets_sources += ['dzl-counters-window.c']
+endif
+
 libdazzle_public_headers += files(widgets_headers)
 libdazzle_public_sources += files(widgets_sources)
 libdazzle_private_sources += files('dzl-rect-helper.c')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]