Greg Steiert / pegasus_dev

Dependents:   blinky_max32630fthr

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers paths.py Source File

paths.py

00001 """
00002 mbed SDK
00003 Copyright (c) 2011-2013 ARM Limited
00004 
00005 Licensed under the Apache License, Version 2.0 (the "License");
00006 you may not use this file except in compliance with the License.
00007 You may obtain a copy of the License at
00008 
00009     http://www.apache.org/licenses/LICENSE-2.0
00010 
00011 Unless required by applicable law or agreed to in writing, software
00012 distributed under the License is distributed on an "AS IS" BASIS,
00013 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014 See the License for the specific language governing permissions and
00015 limitations under the License.
00016 """
00017 from os.path import join
00018 from os import getenv
00019 
00020 # Conventions about the directory structure
00021 from tools.settings import ROOT, BUILD_DIR
00022 
00023 # Allow overriding some of the build parameters using environment variables
00024 BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR
00025 
00026 # Embedded Libraries Sources
00027 LIB_DIR = join(ROOT, "features/unsupported")
00028 
00029 TOOLS = join(ROOT, "tools")
00030 TOOLS_DATA = join(TOOLS, "data")
00031 TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders")
00032 
00033 # mbed libraries
00034 MBED_HEADER = join(ROOT, "mbed.h")
00035 MBED_DRIVERS = join(ROOT, "drivers")
00036 MBED_PLATFORM = join(ROOT, "platform")
00037 MBED_HAL = join(ROOT, "hal")
00038 
00039 MBED_CMSIS_PATH = join(ROOT, "cmsis")
00040 MBED_TARGETS_PATH = join(ROOT, "targets")
00041 
00042 MBED_LIBRARIES = join(BUILD_DIR, "mbed")
00043 MBED_LIBRARIES_DRIVERS = join(MBED_LIBRARIES, "drivers")
00044 MBED_LIBRARIES_PLATFORM = join(MBED_LIBRARIES, "platform")
00045 MBED_LIBRARIES_HAL = join(MBED_LIBRARIES, "hal")
00046 
00047 MBED_CONFIG_FILE = join(ROOT, "platform/mbed_lib.json")
00048 
00049 # Tests
00050 TEST_DIR = join(LIB_DIR, "tests")
00051 HOST_TESTS = join(ROOT, "tools", "host_tests")
00052 
00053 # mbed RPC
00054 MBED_RPC = join(LIB_DIR, "rpc")
00055 
00056 RPC_LIBRARY = join(BUILD_DIR, "rpc")
00057 
00058 # mbed RTOS
00059 RTOS = join(ROOT, "rtos")
00060 MBED_RTX = join(RTOS, "rtx")
00061 
00062 RTOS_LIBRARIES = join(BUILD_DIR, "rtos")
00063 
00064 # TCP/IP
00065 NET = join(LIB_DIR, "net")
00066 
00067 ETH_SOURCES = join(NET, "eth")
00068 LWIP_SOURCES = join(NET, "lwip")
00069 VODAFONE_SOURCES = join(NET, "VodafoneUSBModem")
00070 CELLULAR_SOURCES = join(NET, "cellular", "CellularModem")
00071 CELLULAR_USB_SOURCES = join(NET, "cellular", "CellularUSBModem")
00072 UBLOX_SOURCES = join(NET, "cellular", "UbloxUSBModem")
00073 
00074 NET_LIBRARIES = join(BUILD_DIR, "net")
00075 ETH_LIBRARY = join(NET_LIBRARIES, "eth")
00076 VODAFONE_LIBRARY = join(NET_LIBRARIES, "VodafoneUSBModem")
00077 UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem")
00078 
00079 # FS
00080 FS_PATH = join(LIB_DIR, "fs")
00081 FAT_FS = join(FS_PATH, "fat")
00082 SD_FS = join(FS_PATH, "sd")
00083 FS_LIBRARY = join(BUILD_DIR, "fat")
00084 
00085 # DSP
00086 DSP = join(LIB_DIR, "dsp")
00087 DSP_CMSIS = join(DSP, "cmsis_dsp")
00088 DSP_ABSTRACTION = join(DSP, "dsp")
00089 DSP_LIBRARIES = join(BUILD_DIR, "dsp")
00090 
00091 # USB Device
00092 USB = join(LIB_DIR, "USBDevice")
00093 USB_LIBRARIES = join(BUILD_DIR, "usb")
00094 
00095 # USB Host
00096 USB_HOST = join(LIB_DIR, "USBHost")
00097 USB_HOST_LIBRARIES = join(BUILD_DIR, "usb_host")
00098 
00099 # Export
00100 EXPORT_DIR = join(BUILD_DIR, "export")
00101 EXPORT_WORKSPACE = join(EXPORT_DIR, "workspace")
00102 EXPORT_TMP = join(EXPORT_DIR, ".temp")
00103 
00104 # CppUtest library
00105 CPPUTEST_DIR = join(ROOT, "..")
00106 CPPUTEST_SRC = join(CPPUTEST_DIR, "cpputest", "src", "CppUTest")
00107 CPPUTEST_INC = join(CPPUTEST_DIR, "cpputest", "include")
00108 CPPUTEST_INC_EXT = join(CPPUTEST_DIR, "cpputest", "include", "CppUTest")
00109 # Platform dependant code is here (for armcc compiler)
00110 CPPUTEST_PLATFORM_SRC = join(CPPUTEST_DIR, "cpputest", "src", "Platforms",
00111                              "armcc")
00112 CPPUTEST_PLATFORM_INC = join(CPPUTEST_DIR, "cpputest", "include", "Platforms",
00113                              "armcc")
00114 # Function 'main' used to run all compiled UTs
00115 CPPUTEST_TESTRUNNER_SCR = join(TEST_DIR, "utest", "testrunner")
00116 CPPUTEST_TESTRUNNER_INC = join(TEST_DIR, "utest", "testrunner")
00117 
00118 CPPUTEST_LIBRARY = join(BUILD_DIR, "cpputest")