A metronome using the FRDM K64F board

Committer:
ram54288
Date:
Sun May 14 18:40:18 2017 +0000
Revision:
0:a7a43371b306
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:a7a43371b306 1 # ==========================================
ram54288 0:a7a43371b306 2 # Unity Project - A Test Framework for C
ram54288 0:a7a43371b306 3 # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
ram54288 0:a7a43371b306 4 # [Released under MIT License. Please refer to license.txt for details]
ram54288 0:a7a43371b306 5 # ==========================================
ram54288 0:a7a43371b306 6
ram54288 0:a7a43371b306 7 HERE = File.expand_path(File.dirname(__FILE__)) + '/'
ram54288 0:a7a43371b306 8
ram54288 0:a7a43371b306 9 require 'rake'
ram54288 0:a7a43371b306 10 require 'rake/clean'
ram54288 0:a7a43371b306 11 require 'rake/testtask'
ram54288 0:a7a43371b306 12 require HERE + 'rakefile_helper'
ram54288 0:a7a43371b306 13
ram54288 0:a7a43371b306 14 TEMP_DIRS = [
ram54288 0:a7a43371b306 15 File.join(HERE, 'build')
ram54288 0:a7a43371b306 16 ]
ram54288 0:a7a43371b306 17
ram54288 0:a7a43371b306 18 TEMP_DIRS.each do |dir|
ram54288 0:a7a43371b306 19 directory(dir)
ram54288 0:a7a43371b306 20 CLOBBER.include(dir)
ram54288 0:a7a43371b306 21 end
ram54288 0:a7a43371b306 22
ram54288 0:a7a43371b306 23 task :prepare_for_tests => TEMP_DIRS
ram54288 0:a7a43371b306 24
ram54288 0:a7a43371b306 25 include RakefileHelpers
ram54288 0:a7a43371b306 26
ram54288 0:a7a43371b306 27 # Load default configuration, for now
ram54288 0:a7a43371b306 28 DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
ram54288 0:a7a43371b306 29 configure_toolchain(DEFAULT_CONFIG_FILE)
ram54288 0:a7a43371b306 30
ram54288 0:a7a43371b306 31 task :unit => [:prepare_for_tests] do
ram54288 0:a7a43371b306 32 run_tests
ram54288 0:a7a43371b306 33 end
ram54288 0:a7a43371b306 34
ram54288 0:a7a43371b306 35 desc "Build and test Unity Framework"
ram54288 0:a7a43371b306 36 task :all => [:clean, :unit]
ram54288 0:a7a43371b306 37 task :default => [:clobber, :all]
ram54288 0:a7a43371b306 38 task :ci => [:no_color, :default]
ram54288 0:a7a43371b306 39 task :cruise => [:no_color, :default]
ram54288 0:a7a43371b306 40
ram54288 0:a7a43371b306 41 desc "Load configuration"
ram54288 0:a7a43371b306 42 task :config, :config_file do |t, args|
ram54288 0:a7a43371b306 43 configure_toolchain(args[:config_file])
ram54288 0:a7a43371b306 44 end
ram54288 0:a7a43371b306 45
ram54288 0:a7a43371b306 46 task :no_color do
ram54288 0:a7a43371b306 47 $colour_output = false
ram54288 0:a7a43371b306 48 end