[Groonga-commit] groonga/groonga at f51f8b6 [master] windows: support debug build for zlib

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sun Jan 10 17:35:16 JST 2016


Kouhei Sutou	2016-01-10 17:35:16 +0900 (Sun, 10 Jan 2016)

  New Revision: f51f8b6ad1b101dff70bdab40c35373e7777611d
  https://github.com/groonga/groonga/commit/f51f8b6ad1b101dff70bdab40c35373e7777611d

  Message:
    windows: support debug build for zlib

  Modified files:
    packages/windows/Rakefile

  Modified: packages/windows/Rakefile (+10 -4)
===================================================================
--- packages/windows/Rakefile    2016-01-08 16:36:44 +0900 (04f5865)
+++ packages/windows/Rakefile    2016-01-10 17:35:16 +0900 (7ff9c18)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8; mode: ruby -*-
 #
-# Copyright (C) 2011-2015  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2011-2016  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -98,15 +98,21 @@ namespace :build do
       sh("tar", "xzf", zlib_tar_gz.to_s) or exit(false)
     end
     Dir.chdir(tmp_dir + zlib_base) do
-      sh("make", "PREFIX=#{host}-", "-f", "win32/Makefile.gcc") or exit(false)
+      build_parameters = ["PREFIX=#{host}-"]
+      if debug_build_p
+        build_parameters << "LOC=-DDEBUG"
+        build_parameters << "CFLAGS=$(LOC) -g3 -O0"
+      end
+      sh("make",
+         *build_parameters,
+         "-f", "win32/Makefile.gcc") or exit(false)
       sh("make",
          "INCLUDE_PATH=#{include_dir}",
          "LIBRARY_PATH=#{lib_dir}",
          "BINARY_PATH=#{bin_dir}",
          "SHARED_MODE=1",
          "-f",
-         "win32/Makefile.gcc",
-         "install") or exit(false)
+         "win32/Makefile.gcc", "install") or exit(false)
 
       zlib_license_dir = license_dir + "zlib"
       mkdir_p(zlib_license_dir)
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る