mainmenu "Opie Configuration"

menu "Build Parameters"

choice
  prompt "Target Machine"
  default TARGET_X86
  help
    Please select the architecture of the machine you will be
    building the OpenZaurus buildroot for.

  config TARGET_X86
    boolean "Intel X86"

  config TARGET_MACOSX
    boolean "Mac OS X (DARWIN)"

  config TARGET_SHARP
    boolean "Sharp Zaurus"

  config TARGET_IPAQ
    boolean "iPAQ"

  config TARGET_RAMSES
    boolean "Ramses"

  config TARGET_SIMPAD
    boolean "SIMpad"

  config TARGET_YOPY
    boolean "Yopy 3500/3700"  

endchoice

config OPTIMIZE
  boolean "Use optimizations"
  default "y" if ! TARGET_X86

config DEBUG
  boolean "Enable debug builds"
  default n
config RELEASE
  bool
  default y
  depends !DEBUG
  
config QUICK_LAUNCH
  boolean "Enable Quick Launch"
  default n
  
config QUICKLAUNCH_PATH
  string "Path to quicklauncher"
  default "./quicklauncher" if TARGET_X86
  default "/opt/QtPalmtop/bin/quicklauncher" if ! TARGET_X86

config SPECFILE
  string
  default "qws/linux-generic-g++" if TARGET_X86 && (! X11)
  default "linux-g++" if TARGET_X86 && X11
  default "qws/linux-sharp-g++" if TARGET_SHARP && (! X11)
  default "linux-g++" if TARGET_SHARP && X11
  default "qws/linux-ipaq-g++" if TARGET_IPAQ && (! X11)
  default "linux-g++" if TARGET_IPAQ && X11
  default "qws/linux-ramses-g++" if TARGET_RAMSES && (! X11)
  default "linux-g++" if TARGET_RAMSES && X11
  default "qws/linux-simpad-g++" if TARGET_SIMPAD && (! X11)
  default "linux-g++" if TARGET_SIMPAD && X11
  default "qws/linux-yopy-g++" if TARGET_YOPY && (! X11)
  default "qws/macx-generic-g++" if TARGET_MACOSX && (! X11)

config CUSTOMFILE
  string
  default "custom-ipaq.h" if TARGET_IPAQ
  default "custom-sharp.h" if TARGET_SHARP
  default "custom-ramses.h" if TARGET_RAMSES
  default "custom-ipaq.h" if TARGET_SIMPAD
  default "custom-yopy.h" if TARGET_YOPY

config OPTIMIZATIONS
  string "Optimization flags"
  depends OPTIMIZE
  default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_IPAQ
  default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_YOPY
  default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SHARP
  default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_RAMSES
  default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SIMPAD

config EXPERIMENTAL
  bool "Prompt for development and/or incomplete items"
  default y

endmenu

menu "Configuration"
config OPIE_NO_OVERRIDE_QT
  boolean "Build Opie against an unpatched version of Qt"
  default n

config OPIE_NO_BUILTIN_SHUTDOWN
  boolean "Disable the built in shutdown application"
  default n

config OPIE_NO_BUILTIN_CALIBRATE
  boolean "Disable the built in calibrate application"
  default y if TARGET_YOPY
  default n

config OPIE_SOUND_FRAGMENT_SHIFT
  string  "The sound fragment used in Opie Player I"
  default "14" if TARGET_IPAQ
  default "16" if (!TARGET_IPAQ)

config USE_REALTIME_AUDIO_THREAD
  boolean "Use a realtime thread in Opie Player I"
  default y if TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP
  default n

config QT_QWS_ALLOW_OVERCLOCK
  boolean "Allow the user to overclock the device"
  depends TARGET_RAMSES
  default n

config OPIE_HIGH_RES_SMALL_PHY
  boolean "Resolution is bigger than physical screen"
  default y if TARGET_C700
  default n

config OPIE_NEW_ALLOC
  boolean "Use malloc and free for the implementation"
  default y if TARGET_RAMSES || TARGET_IPAQ || TARGET_SIMPAD || TARGET_SHARP
  default n

config OPIE_NO_SOUND_PCM_READ_BITS
  boolean "There is not a pcm_read_bits io control"
  default y if TARGET_SHARP
  default n

config OPIE_WE_VERSION
  string  "The wireless extension (WE) version to build against"
  default "15" if ! TARGET_X86
  default "16" if TAGET_X86

endmenu

menu "Base"
  choice
    prompt "Qpe Library Selection"
    default LIBQPE
    source library/config.in
    source x11/config.in
  endchoice
  source libopie/config.in
  source core/opie-login/config.in
  source core/opiealarm/config.in
  source core/tools/quicklauncher/config.in
  source core/launcher/config.in
  source core/qws/config.in
endmenu

comment ""

menu "Applets"
  source core/applets/config.in
  source noncore/applets/config.in
endmenu

menu "Apps"
  source core/apps/config.in
  source noncore/apps/config.in
endmenu

menu "Communications and Networking"
  source noncore/comm/config.in
  source noncore/net/config.in
endmenu

menu "Games"
  source noncore/games/config.in
endmenu

menu "Graphics and Multimedia"
  source freetype/config.in
  source noncore/graphics/config.in
  source core/multimedia/config.in
  source noncore/multimedia/config.in
endmenu

menu "Input methods"
  source inputmethods/config.in
endmenu

menu "Pim"
  source core/pim/config.in
  menu "Today Plugins"
    source noncore/todayplugins/config.in
    source core/pim/today/plugins/config.in
  endmenu
endmenu

menu "Settings"
  source core/settings/config.in
  source noncore/settings/config.in
endmenu

menu "Theming"
  source noncore/decorations/config.in
  source noncore/styles/config.in
endmenu

menu "Tools"
  source noncore/tools/config.in
endmenu

menu "Development"
  source development/keyview/config.in
  #source development/debugviewer/config.in
endmenu

menu "Examples"
    config EXAMPLES
	boolean "Compile Example Application"
    source examples/config.in
endmenu

comment ""

menu "Unsupported / Unmaintained"
  source noncore/unsupported/config.in
endmenu

comment ""
  depends on EXPERIMENTAL
menu "Experimental"
  depends on EXPERIMENTAL
  source libopie2/config.in
  source libqtaux/config.in

  config SQL_PIM_BACKEND
  bool "Add SQL-Backend support"
  default n
  help
	This adds the SQL-Support, using SQLite. Which database is used
	by the backends is defined by the file "pimaccess.conf" in the
	directory "Settings".
	There currently do exist to groups "[contact]" and "[todo]". You can
	select the used backend by the variable "usebackend=<type>", where
	<type> is "sql" or "xml". "xml" is the default !
	Important: The SQLite-library "libsqlite.so" must be installed !
  depends ( LIBOPIE2DB )

  comment "SQL-Support needs libopie2db!"
  depends !( LIBOPIE2DB )
endmenu