User:JoeyArmstrong/makefiles/platformKV

From MozillaWiki
Jump to: navigation, search

platformKV.py

platfromKV.py is a script setup act as a simplified version of the configure script. Shell commands like uname which are launched by makefiles to determine values can be generated once during the configure stage. This script will gather values and output statements formatted as make macro assignments. Output can be directed to disk and used as an included makefile.


generated output

# platformKV.py: BEGIN - sentinel for parsing

###########################################################################
# Generated on: Thu Aug  4 16:20:41 2011
###########################################################################

ifndef INCLUDED_PLATFORMKV_MK
  INCLUDED_PLATFORMKV_MK = 1

##
## Platform Defines
##
os_arch              = ubuntu
os_address_size      = 64

isLINUX              = 1
isUBUNTU             = 1

##
## os.uname
##
uname_sysname        = linux
uname_nodename       = phantasm
uname_release        = 2.6.38-10-generic
uname_version        = "#46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011"
uname_machine        = x86_64

##
## platform.uname
##
uname_processor      = x86_64

##
## linux legacy makefile shell macros
##

endif # INCLUDED_PLATFORMKV_MK

# platformKV.py: END - sentinel for parsing