- Avoid referencing project headers from precompiled headers.

Before this change, the pchs for CalcViewModel and Calculator project referenced project headers.  If those project headers (or any of their dependencies) were to change, then the pch would be recompiled, slowing local build times.

  By removing references to project headers, the pch will be compiled once and is resilient to changes in the project.  Now that project headers are explicit about their dependencies, when there is a change to a project header only the translation units referencing the modified header will need to be rebuilt.

- Manually tested by ensuring Calculator project builds locally.

@Microsoft/calculator-team
This commit is contained in:
Daniel Belcher
2019-02-13 17:30:03 -08:00
parent 56fe16349d
commit f210290ddc
51 changed files with 173 additions and 120 deletions

View File

@@ -2,8 +2,11 @@
// Licensed under the MIT License.
#pragma once
#include "CalculatorHistory.h"
#include "Header Files\Rational.h"
#include "Header Files/CalcEngine.h"
#include "Header Files/Rational.h"
#include "Header Files/ICalcDisplay.h"
namespace CalculationManager
{

View File

@@ -17,9 +17,9 @@
#include "scimath.h"
#include "CCommand.h"
#include "EngineStrings.h"
#include "Command.h"
#include "CalculatorVector.h"
#include "ExpressionCommand.h"
#include "../Command.h"
#include "../CalculatorVector.h"
#include "../ExpressionCommand.h"
#include "History.h" // for History Collector
#include "CalcInput.h"
#include "ICalcDisplay.h"

View File

@@ -1,8 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "../CalculatorVector.h"
#include "../ExpressionCommandInterface.h"
// Callback interface to be implemented by the clients of CCalcEngine
class ICalcDisplay {
public:

View File

@@ -22,7 +22,7 @@
//
// RETAIL version of NUMOBJ math that uses Infinite Precision
//
#include "Ratpack/ratpak.h"
#include "../Ratpack/ratpak.h"
//
// Unary functions