Moved backends to their own module.

pull/373/head
Jussi Pakkanen 9 years ago
parent d6b2053146
commit 7435df8399
  1. 0
      mesonbuild/backend/__init__.py
  2. 10
      mesonbuild/backend/backends.py
  3. 14
      mesonbuild/backend/ninjabackend.py
  4. 11
      mesonbuild/backend/vs2010backend.py
  5. 9
      mesonbuild/backend/xcodebackend.py
  6. 6
      mesonbuild/mesonmain.py

@ -1,4 +1,4 @@
# Copyright 2012-2014 The Meson development team
# Copyright 2012-2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -13,11 +13,11 @@
# limitations under the License.
import os, pickle, re
from . import build
from . import dependencies
from . import mesonlib
from .. import build
from .. import dependencies
from .. import mesonlib
import json
from .coredata import MesonException
from ..coredata import MesonException
class InstallData():
def __init__(self, source_dir, build_dir, prefix, depfixer):

@ -13,14 +13,14 @@
# limitations under the License.
from . import backends
from . import environment, mesonlib
from . import build
from . import mlog
from . import dependencies
from .mesonlib import File
from .. import environment, mesonlib
from .. import build
from .. import mlog
from .. import dependencies
from ..mesonlib import File
from .backends import InstallData
from .build import InvalidArguments
from .coredata import MesonException
from ..build import InvalidArguments
from ..coredata import MesonException
import os, sys, pickle, re
import subprocess, shutil

@ -1,4 +1,4 @@
# Copyright 2014-2015 The Meson development team
# Copyright 2014-2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -14,12 +14,13 @@
import os, sys
import pickle
from . import backends, build
from . import dependencies
from . import mlog
from . import backends
from .. import build
from .. import dependencies
from .. import mlog
import xml.etree.ElementTree as ET
import xml.dom.minidom
from .coredata import MesonException
from ..coredata import MesonException
class RegenInfo():
def __init__(self, source_dir, build_dir, depfiles, solutionfile):

@ -1,4 +1,4 @@
# Copyright 2014 The Meson development team
# Copyright 2014-2016 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from . import backends, build
from . import mesonlib
from . import backends
from .. import build
from .. import mesonlib
import uuid, os, sys
from .coredata import MesonException
from ..coredata import MesonException
class XCodeBackend(backends.Backend):
def __init__(self, build):

@ -138,13 +138,13 @@ itself as required.'''
mlog.log('Build type:', mlog.bold('native build'))
b = build.Build(env)
if self.options.backend == 'ninja':
from . import ninjabackend
from .backend import ninjabackend
g = ninjabackend.NinjaBackend(b)
elif self.options.backend == 'vs2010':
from . import vs2010backend
from .backend import vs2010backend
g = vs2010backend.Vs2010Backend(b)
elif self.options.backend == 'xcode':
from . import xcodebackend
from .backend import xcodebackend
g = xcodebackend.XCodeBackend(b)
else:
raise RuntimeError('Unknown backend "%s".' % self.options.backend)

Loading…
Cancel
Save