(self)
| 2923 | return [d for d in dirs if os.path.isdir(d)] |
| 2924 | |
| 2925 | def calc_info(self): |
| 2926 | src_dirs = self.get_src_dirs() |
| 2927 | src_dir = '' |
| 2928 | for d in src_dirs: |
| 2929 | if os.path.isfile(os.path.join(d, 'src', 'agg_affine_matrix.cpp')): |
| 2930 | src_dir = d |
| 2931 | break |
| 2932 | if not src_dir: |
| 2933 | return |
| 2934 | if sys.platform == 'win32': |
| 2935 | agg2_srcs = glob(os.path.join(src_dir, 'src', 'platform', |
| 2936 | 'win32', 'agg_win32_bmp.cpp')) |
| 2937 | else: |
| 2938 | agg2_srcs = glob(os.path.join(src_dir, 'src', '*.cpp')) |
| 2939 | agg2_srcs += [os.path.join(src_dir, 'src', 'platform', |
| 2940 | 'X11', |
| 2941 | 'agg_platform_support.cpp')] |
| 2942 | |
| 2943 | info = {'libraries': |
| 2944 | [('agg2_src', |
| 2945 | {'sources': agg2_srcs, |
| 2946 | 'include_dirs': [os.path.join(src_dir, 'include')], |
| 2947 | } |
| 2948 | )], |
| 2949 | 'include_dirs': [os.path.join(src_dir, 'include')], |
| 2950 | } |
| 2951 | if info: |
| 2952 | self.set_info(**info) |
| 2953 | return |
| 2954 | |
| 2955 | |
| 2956 | class _pkg_config_info(system_info): |
nothing calls this directly
no test coverage detected