Ticket #8252: add_debug_profile.2.patch

File add_debug_profile.2.patch, 4.0 KB (added by umccullough, 12 years ago)

Separate patch for adding the debug profile from the 64bit build issue

  • Jamrules

    From 424bcc84eb9c9b76291e105fbfed1c39b5ca379d Mon Sep 17 00:00:00 2001
    From: Urias McCullough <umccullough@gmail.com>
    Date: Sat, 17 Dec 2011 22:02:39 -0800
    Subject: [PATCH 2/2] Add a debug build profile for use with Buildbot
    
    * DEBUG=1 set by default for entire tree
    * DEBUG=0 set for several subdirectories that gave problems (hint: these
      deserve attention)
    * Debug image size set to 650 MiB which is still a bit tight
    ---
     Jamrules                     |    1 +
     build/jam/DebugBuildProfiles |   45 ++++++++++++++++++++++++++++++++++++++++++
     2 files changed, 46 insertions(+), 0 deletions(-)
     create mode 100644 build/jam/DebugBuildProfiles
    
    diff --git a/Jamrules b/Jamrules
    index 60fb1d5..44543bc 100644
    a b if ! $(HAIKU_IGNORE_USER_BUILD_CONFIG) {  
    7676}
    7777
    7878include [ FDirName $(HAIKU_BUILD_RULES_DIR) ReleaseBuildProfiles ] ;
     79include [ FDirName $(HAIKU_BUILD_RULES_DIR) DebugBuildProfiles ] ;
    7980
    8081# If a build profile was specified on the command line, now is the time to
    8182# check whether it is unknown or one of the default profiles.
  • new file uild/jam/DebugBuildProfiles

    diff --git a/build/jam/DebugBuildProfiles b/build/jam/DebugBuildProfiles
    new file mode 100644
    index 0000000..7c83150
    - +  
     1DefineBuildProfile debug : image : "haiku-debug.image" ;
     2
     3switch $(HAIKU_BUILD_PROFILE) {
     4    case "debug" : {
     5        Echo Building Debug Image ;
     6
     7        # For a debug image the binaries are a little bit larger
     8        HAIKU_IMAGE_SIZE = 650 ;
     9
     10        SetConfigVar DEBUG : HAIKU_TOP : 1 : global ;
     11
     12        # Targets in these subdirectories need some DEBUG love
     13        SetConfigVar DEBUG : HAIKU_TOP src add-ons disk_systems bfs : 0 : local ;
     14        SetConfigVar DEBUG : HAIKU_TOP src add-ons kernel drivers audio hda : 0 : local ;
     15        SetConfigVar DEBUG : HAIKU_TOP src add-ons kernel drivers midi usb_midi : 0 : local ;
     16        SetConfigVar DEBUG : HAIKU_TOP src add-ons kernel file_systems btrfs : 0 : local ;
     17        SetConfigVar DEBUG : HAIKU_TOP src add-ons kernel file_systems ntfs libntfs : 0 : local ;
     18        SetConfigVar DEBUG : HAIKU_TOP src add-ons kernel file_systems udf : 0 : local ;
     19        SetConfigVar DEBUG : HAIKU_TOP src add-ons mail_daemon inbound_protocols pop3 : 0 : local ;
     20        SetConfigVar DEBUG : HAIKU_TOP src add-ons media media-add-ons dvb : 0 : local ;
     21        SetConfigVar DEBUG : HAIKU_TOP src add-ons media media-add-ons opensound : 0 : local ;
     22        SetConfigVar DEBUG : HAIKU_TOP src add-ons media plugins ffmpeg libavcodec : 0 : local ;
     23        SetConfigVar DEBUG : HAIKU_TOP src add-ons media plugins ffmpeg libavcodec x86 : 0 : local ;
     24        SetConfigVar DEBUG : HAIKU_TOP src add-ons media plugins ffmpeg libavformat : 0 : local ;
     25        SetConfigVar DEBUG : HAIKU_TOP src add-ons media plugins ffmpeg libswscale : 0 : local ;
     26        SetConfigVar DEBUG : HAIKU_TOP src add-ons print drivers gutenprint : 0 : local ;
     27        SetConfigVar DEBUG : HAIKU_TOP src apps bsnow : 0 : local ;
     28        SetConfigVar DEBUG : HAIKU_TOP src apps cortex addons AudioAdapter : 0 : local ;
     29        SetConfigVar DEBUG : HAIKU_TOP src apps cortex NodeManager : 0 : local ;
     30        SetConfigVar DEBUG : HAIKU_TOP src apps cortex TransportView : 0 : local ;
     31        SetConfigVar DEBUG : HAIKU_TOP src bin coreutils src : 0 : local ;
     32        SetConfigVar DEBUG : HAIKU_TOP src bin ctags : 0 : local ;
     33        SetConfigVar DEBUG : HAIKU_TOP src bin network tcpdump : 0 : local ;
     34        SetConfigVar DEBUG : HAIKU_TOP src libs print libgutenprint src main : 0 : local ;
     35        SetConfigVar DEBUG : HAIKU_TOP src libs print libprint : 0 : local ;
     36        SetConfigVar DEBUG : HAIKU_TOP src preferences mouse : 0 : local ;
     37        SetConfigVar DEBUG : HAIKU_TOP src servers input : 0 : local ;
     38        SetConfigVar DEBUG : HAIKU_TOP src servers media : 0 : local ;
     39        SetConfigVar DEBUG : HAIKU_TOP src servers media_addon : 0 : local ;
     40        SetConfigVar DEBUG : HAIKU_TOP src servers mount : 0 : local ;
     41        SetConfigVar DEBUG : HAIKU_TOP src system boot loader file_systems bfs : 0 : local ;
     42        SetConfigVar DEBUG : HAIKU_TOP src system boot loader file_systems tarfs : 0 : local ;
     43    }
     44
     45}