Skip to content

Commit

Permalink
Refactoring, change settings to configure.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nsubiron committed Jul 6, 2017
1 parent a2312e6 commit 38aa0d9
Show file tree
Hide file tree
Showing 25 changed files with 681 additions and 551 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SHELL = sh
APPNAME = configure
SOURCE = source

default: run test
default: run

test: dist
@python test.py bin/$(APPNAME).pyz test_cases
Expand Down
12 changes: 11 additions & 1 deletion source/codeblocks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# configure.pyz Copyright (C) 2014 N. Subiron Montoro
#
# This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you
# are welcome to redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.

import logging
import os
import platform
Expand All @@ -7,15 +14,18 @@

from configure import Path

import util

EXECUTABLE_EXT = '.exe' if platform.system().lower() == 'windows' else ''

class CodeBlocks(object):
"""Helper class"""

def __init__(self, settings, compiler):
self._settings = settings
self.compiler_name = settings.get('codeblocks_compiler_name')
self.compiler_name = settings.get('codeblocks').get('compiler_name', 'gcc')
self.projectsdir = settings.get('projectsdir')
util.mkdir_p(self.projectsdir)
self.configurations = compiler.get_configurations()
cvars = compiler.get_global_variables()
self.cflags = cvars['cflags']
Expand Down
Loading

0 comments on commit 38aa0d9

Please sign in to comment.